[Libguestfs] Python Hivex Assertion Failed

Elizabeth Schweinsberg bethlogic at gmail.com
Fri Apr 1 20:39:19 UTC 2011


Sorry -- I guess I don't have a good place to put a large file right
now, but will work on that this weekend.

I am running v1.2.4 and compiling from source using gcc 4.4.5 on
Ubuntu 10.10.  Anyone else get it running on Ubuntu before?

Elizabeth

On Fri, Apr 1, 2011 at 3:16 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Fri, Apr 01, 2011 at 03:01:58PM -0400, Elizabeth Schweinsberg wrote:
>> Richard,
>>
>> Thanks for the reply.  I'm beginning to think it's Ubuntu that's the
>> problem.  I acquired a SOFTWARE hive and ran the code you sent on it
>> and I get the same error.  I even upgraded to Python 2.7.
>>
>> My runs:
>>
>> -------- Your code with my software hive --------
>> emschwe at station12:~/jean2$ cat test-hivex.py
>> #!/usr/bin/python
>> import hivex
>> h = hivex.Hivex("software")
>> r = h.root()
>> node = h.node_get_child(r, "Microsoft")
>> print r
>> print h.node_name(r)
>> print h.node_name(node)
>>
>> emschwe at station12:~/jean2$ ./test-hivex.py
>> python: hivex-py.c:52: get_handle: Assertion `obj' failed.
>> Aborted
>> emschwe at station12:~/jean2$
>>
>>
>> ----- My version on NTUSER.DAT -----
>> emschwe at station12:~/jean2$ cat test-hivex.py
>> #!/usr/bin/python
>> import hivex
>> h = hivex.Hivex("NTUSER.004.DAT")
>> r = h.root()
>> node = h.node_get_child(r, "Software")
>> print r
>> print h.node_name(r)
>> print h.node_name(node)
>>
>> emschwe at station12:~/jean2$ ./test-hivex.py
>> python: hivex-py.c:52: get_handle: Assertion `obj' failed.
>> Aborted
>> emschwe at station12:~/jean2$
>>
>> I uploaded the NTUSER.DAT file here:
>>
>> [...]
>
> I cannot get to that URL.  It wants me to log in or something.
>
>> If you are able to process it on your system, then I'll know it's the
>> installation and I should start all over (again).
>
> Which version are you running?  The Ubuntu version in universe doesn't
> even have any Python bindings.  Are you compiling it from source?
>
> Please let's keep replies on the list to benefit others who might come
> across the same problem.
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> virt-p2v converts physical machines to virtual machines.  Boot with a
> live CD or over the network (PXE) and turn machines into Xen guests.
> http://et.redhat.com/~rjones/virt-p2v
>




More information about the Libguestfs mailing list