search for: 1223870

Displaying 4 results from an estimated 4 matches for "1223870".

2015 Oct 29
2
[nbdkit] can't import mmap
Hi, I'm new to nbdkit and am trying to run a simple "single file block device using mmap" setup, using this python script: import mmap def config(key, value): print ("ignored parameter %s=%s" % (key, value)) def open(readonly): print ("open: readonly=%d" % readonly) f = open("disk","r+") m = mmap.mmap(f.fileno(), 0,
2015 Oct 29
0
Re: [nbdkit] can't import mmap
...<module> > import mmap > ImportError: /usr/lib/python2.7/lib-dynload/mmap.x86_64-linux-gnu.so: > undefined symbol: PyExc_SystemError > nbdkit: error: single_file.py: error running this script > > > Any ideas? It's probably this bug: https://bugzilla.redhat.com/1223870 Fixed in this commit: https://github.com/libguestfs/nbdkit/commit/77f4982e65840b6edff5e97d3dbdf140f7e3229b Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virt...
2014 Mar 15
1
FLAC-compress data with Python
Hello, I would like to compress some data, stored in a Numpy Array (Python) with something like (*): flac.compress(my_array) without having to put data in a .wav file, without having to deal with containers, etc., i.e. : *raw data in / raw data out* Do you have an idea on how to do that with FLAC? This could be useful for audio data of course (stored in simple arrays), but also for other kind
2015 May 21
2
Re: [nbdkit python]: unable to locate modules
What version of Python were you running for your test? $ python --version Python 2.7.9 Also, has anyone written a complex plugin for nbdkit that leverages shared libraries? I was hoping to hack this together quickly to test performance... Thanks! Bill- On Thu, May 21, 2015 at 5:34 AM, Richard W.M. Jones <rjones@redhat.com> wrote: > Judging by this comment, it seems to be a generic