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

Bug#706664: python-pocketsphinx: exception importing Decoder: ValueError: PyCapsule_GetPointer called with invalid PyCapsule object



Control: severity -1 important

On Fri, 2013-05-03 at 12:26 +0800, Paul Wise wrote:

> Importing just the decoder module fails, the module itself should handle
> any initialisation that is needed to make this work. Importing the whole
> pocketsphinx module and then calling the decoder from that works though.

Actually it looks like the issue is that it needs to be imported twice:

pabs@chianamo ~/tmp/speech-test $ python
Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pocketsphinx import Decoder
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sphinxbase.pxd", line 150, in init pocketsphinx (pocketsphinx.c:7935)
ValueError: PyCapsule_GetPointer called with invalid PyCapsule object
>>> from pocketsphinx import Decoder
>>> from pocketsphinx import Decoder
>>> 
pabs@chianamo ~ $ python
Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pocketsphinx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sphinxbase.pxd", line 150, in init pocketsphinx (pocketsphinx.c:7935)
ValueError: PyCapsule_GetPointer called with invalid PyCapsule object
>>> import pocketsphinx
>>> import pocketsphinx
>>> import pocketsphinx
>>> 

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: