Error importing Python module pocketsphinx

Bug #1318103 reported by Vesselin Kostadinov
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pocketsphinx (Ubuntu)
Expired
High
Unassigned

Bug Description

Pretty much stock standard Ubuntu 14.04 AMD64 with no manually compiled software and no manually installed python modules.

$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.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
>>>

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I get the same error message when I attempt to import pocketsphinx in python, after installing python-pocketsphinx 0.8.0+real-0ubuntu6 on Ubuntu 14.04. (The problem is also present on Ubuntu Utopic)

Changed in pocketsphinx (Ubuntu):
status: New → Confirmed
tags: added: amd64 i386 trusty utopic
removed: import pocketsphinx
Revision history for this message
Alex Rea (amplitude) wrote :

I have the same bug on the same setup. Trying to import it a second time works for me weirdly, though, so I'm just using try/except to work around this for the moment.

Revision history for this message
Mike C. Fletcher (mcfletch) wrote :

These errors (PyCapsule errors) can be fixed by re-running the Cython generation with a more recent Cython. Not sure whether that should be happening at the Ubuntu or upstream level.

Changed in pocketsphinx (Ubuntu):
importance: Undecided → High
Revision history for this message
silviop (far5893) wrote :

No news? It's two year old!!!

Revision history for this message
David Huggins-Daines (dhuggins) wrote : Re: [Bug 1318103] Re: Error importing Python module pocketsphinx

I'm not maintaining PocketSphinx anymore, but I can answer the question
about Ubuntu vs. upstream - upstream source clearly includes both the .c
and the .pyx file, so technically they should be the ones to re-run
Cython. But I don't think it is a problem if Ubuntu just recompiles it

Rebuilding the Cython stuff isn't done by default when compiling. IIRC
there is a configure flag for it. You should probably just turn it on in
debian/rules.

On Sun, Jan 31, 2016 at 4:48 PM, silviop <email address hidden>
wrote:

> No news? It's two year old!!!
>
> --
> You received this bug notification because you are subscribed to
> pocketsphinx in Ubuntu.
> https://bugs.launchpad.net/bugs/1318103
>
> Title:
> Error importing Python module pocketsphinx
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pocketsphinx/+bug/1318103/+subscriptions
>

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

The package in eoan is now Python3, please try again and set back to "new" if you still have this issue

Changed in pocketsphinx (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pocketsphinx (Ubuntu) because there has been no activity for 60 days.]

Changed in pocketsphinx (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.