Skip to content

Instantly share code, notes, and snippets.

@mxgrey
Created February 2, 2022 05:08
Show Gist options
  • Save mxgrey/1ab1bfdcc5fafeddeae46a9ae1fc43d1 to your computer and use it in GitHub Desktop.
Save mxgrey/1ab1bfdcc5fafeddeae46a9ae1fc43d1 to your computer and use it in GitHub Desktop.
setuptools email error??
--- stderr: pybind11_vendor
CMake Error at /usr/lib/cmake/pybind11/FindPythonLibsNew.cmake:96 (message):
Python config failure:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/grey/.local/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 83, in create_module
return importlib.import_module('setuptools._distutils')
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/grey/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
File "/home/grey/.local/lib/python3.6/site-packages/_distutils_hack/override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "/home/grey/.local/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 64, in do_override
ensure_local_distutils()
File "/home/grey/.local/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 51, in ensure_local_distutils
core = importlib.import_module('distutils.core')
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/grey/.local/lib/python3.6/site-packages/setuptools/_distutils/core.py", line 16, in <module>
from distutils.dist import Distribution
File "/home/grey/.local/lib/python3.6/site-packages/setuptools/_distutils/dist.py", line 10, in <module>
from email import message_from_file
ModuleNotFoundError: No module named 'email'
Call Stack (most recent call first):
/usr/lib/cmake/pybind11/pybind11Tools.cmake:16 (find_package)
/usr/lib/cmake/pybind11/pybind11Config.cmake:100 (include)
CMakeLists.txt:12 (find_package)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment