Displaying 3 results from an estimated 3 matches for "pyfloat_typ".
Did you mean:
pyfloat_type
2015 May 21
2
[nbdkit python]: unable to locate modules
I'm working on a python plugin for nbdkit that treats Google Cloud
Storage as a block device. I have a library, gcs.py, that implements
simple commands: list, get, put, delete; source is here:
https://github.com/wspeirs/cldblkdev/blob/master/gcs.py
When I attempt to run nbdkit I get the following error:
nbdkit python script=/home/wspeirs/src/cldblkdev/cldblkdev.py
Traceback (most recent call
2015 May 21
0
Re: [nbdkit python]: unable to locate modules
...import JSONDecoder
File "/usr/lib64/python2.7/json/decoder.py", line 5, in <module>
import struct
File "/usr/lib64/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: /usr/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyFloat_Type
nbdkit: error: /tmp/gcs.py: error running this script
A smallest possible reproducer is to have a file that has a single line:
import json
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpres...
2015 May 21
2
Re: [nbdkit python]: unable to locate modules
...File "/usr/lib64/python2.7/json/decoder.py", line 5, in <module>
> import struct
> File "/usr/lib64/python2.7/struct.py", line 1, in <module>
> from _struct import *
> ImportError: /usr/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyFloat_Type
> nbdkit: error: /tmp/gcs.py: error running this script
>
> A smallest possible reproducer is to have a file that has a single line:
>
> import json
I can fix it (for my simple json case) by doing:
LD_PRELOAD=/usr/lib64/python2.7/lib-dynload/_json.so nbdkit python script=/tmp/...