python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

Unable to copy value of extra_info to a new variables

Open DamienDeepgram opened this issue 2 years ago • 1 comments
trafficstars

When I try to do this

val = file.extra_info

I get this error

TypeError: initializer for ctype 'struct SNDFILE_tag *' must be a cdata pointer, not NoneType

I am able to do this just fine tho

print(file.extra_info)

I want to put thew value of extra_info into a json response

DamienDeepgram avatar Jul 30 '23 20:07 DamienDeepgram

This sounds like the file might not contain any extra info?

bastibe avatar Aug 05 '23 08:08 bastibe