Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybind11 requirement #2

Open
quents opened this issue Jan 8, 2021 · 4 comments · May be fixed by #8
Open

pybind11 requirement #2

quents opened this issue Jan 8, 2021 · 4 comments · May be fixed by #8

Comments

@quents
Copy link

quents commented Jan 8, 2021

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
Copy link
Owner

kahne commented Jan 8, 2021

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

pip install pybind11

@carolinekoudoroparfait
Copy link

carolinekoudoroparfait commented Jan 27, 2021

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
Copy link

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
Copy link

igonro commented Oct 20, 2022

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

@mrapplexz mrapplexz linked a pull request Jan 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants