[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Python Hivex Assertion Failed



On Fri, Apr 01, 2011 at 04:39:19PM -0400, Elizabeth Schweinsberg wrote:
> 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?

Yes, I've compiled it from git on Ubuntu 10.10 (x86-64) right now, and
all the tests pass fine.  The Python tests were broken on Debian (for
a very minor reason unrelated to Python); this commit fixes that:

http://git.annexia.org/?p=hivex.git;a=commitdiff;h=77b3cd202857a0763cecc88560e9eb7fc6af11a6

Ubuntu 10.10 (maverick)
python 2.6.6-2ubuntu2
gcc 4:4.4.4-1ubuntu2

Furthermore I ran your script on /Users/Default/NTUSER.DAT downloaded
from a Windows 7 VM:

$ file /tmp/NTUSER.DAT 
/tmp/NTUSER.DAT: MS Windows registry file, NT/2000 or above
$ cat /tmp/test.py 
#!/usr/bin/python
import hivex
h = hivex.Hivex("/tmp/NTUSER.DAT")
r = h.root()
node = h.node_get_child(r, "Software")
print r
print h.node_name(r)
print h.node_name(node)
$ export LD_LIBRARY_PATH=/home/rjones/d/hivex/lib/.libs
$ export PYTHONPATH=/home/rjones/d/hivex/python:/home/rjones/d/hivex/python/.libs
$ python /tmp/test.py 
4128
CMI-CreateHive{6A1C4018-979D-4291-A7DC-7AED1C75B67C}
Software

So it all appears to work fine for me on Ubuntu.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]