安装 funtofem funtofem/TransferScheme.pyx:14:0: 'TransferScheme.pxd' not found
funtofem make之后报错
ERROR: Command errored out with exit status 1: command: /home/export/base/nsccwuxi_amd/amd_npu3/online3/dafoam/packages/miniconda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5oo1uiws/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-5oo1uiws/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-5oo1uiws/pip-egg-info cwd: /tmp/pip-req-build-5oo1uiws/ Complete output (27 lines): /home/export/base/nsccwuxi_amd/amd_npu3/online3/dafoam/packages/miniconda/lib/python3.8/site-packages/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-req-build-5oo1uiws/funtofem/TransferScheme.pxd tree = Parsing.p_module(s, pxd, full_module_name) Error compiling Cython file: ------------------------------------------------------------ ... cdef extern from "mpi-compat.h": pass # Import the declarations required from the pxd file from TransferScheme cimport * ^ ------------------------------------------------------------ funtofem/TransferScheme.pyx:14:0: 'TransferScheme.pxd' not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-req-build-5oo1uiws/setup.py", line 100, in <module> ext_modules=cythonize(exts, include_path=inc_dirs), File "/home/export/base/nsccwuxi_amd/amd_npu3/online3/dafoam/packages/miniconda/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1110, in cythonize cythonize_one(*args) File "/home/export/base/nsccwuxi_amd/amd_npu3/online3/dafoam/packages/miniconda/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1277, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: funtofem/TransferScheme.pyx Compiling funtofem/TransferScheme.pyx because it changed. [1/1] Cythonizing funtofem/TransferScheme.pyx ----------------------------------------
删除 __init__.py 文件,这个文件会把它变成包
rm -rf funtofem/__init__.py
完!