fastwer icon indicating copy to clipboard operation
fastwer copied to clipboard

pybind11 requirement

Open quents opened this issue 4 years ago • 4 comments

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.

quents avatar Jan 08 '21 07:01 quents

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

pip install pybind11

kahne avatar Jan 08 '21 22:01 kahne

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)`

carolinekoudoroparfait avatar Jan 27 '21 15:01 carolinekoudoroparfait

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.

VikasOjha666 avatar Sep 28 '21 12:09 VikasOjha666

@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.

igonro avatar Oct 20 '22 10:10 igonro