smdogroup / tacs

Finite-element library for analysis and adjoint-based gradient evaluation
Apache License 2.0
108 stars 75 forks source link

installation failed: Cython.Compiler.Errors.InternalError: Internal compiler error: 'TacsDefs.pxi' not found #7

Closed Xiangbei11 closed 2 years ago

Xiangbei11 commented 4 years ago

File "/Users/Sansara/tacs-master/setup.py", line 77, in ext_modules=cythonize(exts, include_path=inc_dirs)) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 965, in cythonize module_list, module_metadata = create_extension_list( File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 829, in create_extension_list kwds = deps.distutils_info(file, aliases, base).values File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 684, in distutils_info return (self.transitive_merge(filename, self.distutils_info0, DistutilsInfo.merge) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 693, in transitive_merge return self.transitive_merge_helper( File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 699, in transitive_merge_helper deps = extract(node) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 664, in distutils_info0 cimports, externs, incdirs = self.cimports_externs_incdirs(filename) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Utils.py", line 54, in wrapper res = cache[args] = f(self, args) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 552, in cimports_externs_incdirs for include in self.included_files(filename): File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Utils.py", line 54, in wrapper res = cache[args] = f(self, args) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 534, in included_files include_path = self.context.find_include_file(include, None) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Compiler/Main.py", line 285, in find_include_file error(pos, "'%s' not found" % filename) File "/Users/Sansara/opt/miniconda3/lib/python3.8/site-packages/Cython/Compiler/Errors.py", line 178, in error raise InternalError(message) Cython.Compiler.Errors.InternalError: Internal compiler error: 'TacsDefs.pxi' not found

Where should TacsDefs.pxi come from, and what should it contain? I am sure I have successfully installed mpi4py. Is this due to other reason?

timryanb commented 2 years ago

It sounds like you didn't compile the C++ using 'make' in the root directory first. This should create TacsDefs.pxi needed for the cython compilation.