#286 ✓resolved
iconstate

libplist NameError: libc

Reported by iconstate | September 16th, 2012 @ 05:50 AM | 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

    iconstate September 16th, 2012 @ 05:59 AM

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

  • iconstate

    iconstate September 16th, 2012 @ 06:08 AM

    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

    iconstate September 18th, 2012 @ 03:43 AM

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

  • Martin S.

    Martin S. October 21st, 2012 @ 03:33 PM

    • 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.

    Martin S. February 12th, 2013 @ 02:00 PM

    • Milestone set to 1.2.0 Release

    Assigning to next milestone.

  • Martin S.

    Martin S. February 27th, 2013 @ 02:22 PM

    • 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.

New-ticket Create new ticket

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

People watching this ticket

Pages