-
Notifications
You must be signed in to change notification settings - Fork 147
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
Install fails: No module named 'pybind11' #32
Comments
Changing the class get_pybind_include(object):
"""Helper class to determine the pybind11 include path
The purpose of this class is to postpone importing pybind11
until it is actually installed, so that the ``get_include()``
method can be invoked. """
def __init__(self, user=False):
try:
import pybind11
except ImportError:
if subprocess.call([sys.executable, '-m', 'pip', 'install', 'pybind11']):
raise RuntimeError('pybind11 install failed.')
self.user = user
def __str__(self):
import pybind11
return pybind11.get_include(self.user) |
Fixing setup.py see pybind/python_example#32
I'm getting the same error with fastfunc. |
Just wanted to add a minor thing that we need to import subprocess for this to work. |
I had the same problem in a similar project and adding |
Should be fixed now. |
Summary
Unfortunately the setup process has started to fail. Unsure what the cause of this is, it could to do with how
setup.py
imports pybind11.System
The text was updated successfully, but these errors were encountered: