Giter Site home page Giter Site logo

Import Error about ctcdecode HOT 5 OPEN

parlance avatar parlance commented on May 24, 2024
Import Error

from ctcdecode.

Comments (5)

yaxili96 avatar yaxili96 commented on May 24, 2024 2

try import torch before importing this package

from ctcdecode.

 avatar commented on May 24, 2024

hello, have you solved the question?

from ctcdecode.

hukkai avatar hukkai commented on May 24, 2024

see HIT-SCIR/pyltp#58

from ctcdecode.

shamoons avatar shamoons commented on May 24, 2024

I tried and am getting the same issue:

Traceback (most recent call last):
  File "/home/shamoon/pytorch-lstm-audio/submodules/deepspeech2/decoder.py", line 102, in __init__
    from ctcdecode import CTCBeamDecoder
  File "/home/shamoon/ctcdecode/ctcdecode/__init__.py", line 1, in <module>
    from ._ext import ctc_decode
ModuleNotFoundError: No module named 'ctcdecode._ext'

from ctcdecode.

shaowc5 avatar shaowc5 commented on May 24, 2024

In my case I had to go back to torch 1.0.1 to resolve it.
My initial torch version was 1.7.0, and i deleted all the torch package and installed torch 1.0.1.
Then reinstalled ctcdecode, i had to rename ctcdecode source directory to ctcdecode-1.0.2 or the ctcdecode library directory could not be create.

from ctcdecode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.