kahne / fastwer

A PyPI package for fast word/character error rate (WER/CER) calculation
MIT License
67 stars 13 forks source link

pybind11 requirement #2

Open quents opened 3 years ago

quents commented 3 years ago

Hello,

Getting the following error while collecting the package via pip:

import pybind11 ModuleNotFoundError: No module named 'pybind11'

I have to first install pybind11 independently, which is a problem.

kahne commented 3 years ago

Thanks. I've updated the instructions accordingly. Did you encounter any issue with the pybind11 installation?

pip install pybind11
carolinekoudoroparfait commented 3 years ago

hello, when I want to run the code I get this error. However I followed the installation instructions. Is this normal? thank you for your answer and your work

`File "/home/antonomaz/Documents/SORBONNE/Doctorat/EXPE_PROGRA_2020_2021/EXPE_COMPARE_TXTBRUIT/EXPE_08012021/BOITE_OUTILS/DIST_SIM/fastwer.py", line 16, in fastwer.score(hypo, ref)

AttributeError: partially initialized module 'fastwer' has no attribute 'score' (most likely due to a circular import)`

VikasOjha666 commented 2 years ago

If you clone the repository and install the fastwer using setup.py file. By command python setup.py install. The module has no attribute problem will be resolved. Also make sure you have pybind11 installed and you have restarted your runtime after installation.

igonro commented 1 year ago

@kahne I think the problem of @quents could be when you're trying to define your packages in a conda.yaml file.

For example, this would fail because the pybind11 module is not available at the time of fastwer installation.

name: myenv
channels:
  - conda-forge
dependencies:
  - python=3.9
  - pip=22.2
  - pip:
    - pybind11==2.10.0
    - fastwer==0.1.3

Not sure what would be the solution.