jpuigcerver / openfst-python

Self-contained Python package for OpenFst
Apache License 2.0
50 stars 12 forks source link

ModuleNotFoundError: No module named 'openfst_python.pywrapfst' (1.6.9 branch ) #3

Closed onchiptech closed 3 years ago

onchiptech commented 3 years ago

I am trying to install openfst-python on Python 3.8.5. I've tried master branch as well as 1.6.9 branch, but none have worked.

master branch Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. import openfst_python as fst f=fst.Fst() Traceback (most recent call last): File "", line 1, in File "pywrapfst.pyx", line 1617, in pywrapfst.Fst.init AttributeError: 'pywrapfst.Fst' object has no attribute '_class__'

1.6.9 branch

Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

import openfst_python as fst Traceback (most recent call last): File "", line 1, in File "/media/surendra/d/projects/openfst-python/openfst_python/init.py", line 4, in from openfst_python.pywrapfst import * ModuleNotFoundError: No module named 'openfst_python.pywrapfst'

onchiptech commented 3 years ago

[solved] 1.6.9 branch works. I've made a mistake...the error occurred because I imported openfst-python from the source folder.