You are not logged in.

#1 2012-03-13 17:34:30

rr0hit
Member
From: Kharagpur, West Bengal, India
Registered: 2011-11-12
Posts: 3
Website

Pocketsphinx python module

I installed pocketsphinx from AUR. When I import the module in python, I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sphinxbase.pxd", line 138, in init pocketsphinx (pocketsphinx.c:6695)
ValueError: PyCapsule_GetPointer called with invalid PyCapsule object

But if I run "import pocketsphinx" once again in the same instance of python interpreter, it works. Any idea why this strange behaviour?

Offline

#2 2012-03-13 17:56:50

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Pocketsphinx python module

It seems to be a bug in the code. The initialization does not occur in the order that it should, so the PyCapsule object is invalid the first time it is called, but somehow manages to get properly instantiated after that.

Report it to the developer.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2012-03-13 19:40:35

rr0hit
Member
From: Kharagpur, West Bengal, India
Registered: 2011-11-12
Posts: 3
Website

Re: Pocketsphinx python module

I tried the same version of pocketsphinx on Fedora which worked just fine. Could it be some packages I've installed?

Offline

Board footer

Powered by FluxBB