Open xuanranxiaoshi opened 1 week ago
I found a new problem.
After building Taichi in the above way, I execute it directly on the command line:
python tiDemo.py
(tiDemo.py is a simple taichi sample program)
Generate an error:
Share object taichi_python import failed, check this page for possible solutions:
https://docs.taichi-lang.org/docs/install
Traceback (most recent call last):
File "E:\Code\Cplusplus\TrnasTest\TransTest01\taichi\tiDemo.py", line 1, in <module>
import taichi as ti
File "e:\code\cplusplus\taichi\python\taichi\__init__.py", line 1, in <module>
from taichi._funcs import *
File "e:\code\cplusplus\taichi\python\taichi\_funcs.py", line 3, in <module>
from taichi.lang import impl, ops
File "e:\code\cplusplus\taichi\python\taichi\lang\__init__.py", line 1, in <module>
from taichi.lang import impl, simt
File "e:\code\cplusplus\taichi\python\taichi\lang\impl.py", line 6, in <module>
from taichi._lib import core as _ti_core
File "e:\code\cplusplus\taichi\python\taichi\_lib\__init__.py", line 1, in <module>
from taichi._lib.utils import ti_python_core as core
File "e:\code\cplusplus\taichi\python\taichi\_lib\utils.py", line 110, in <module>
ti_python_core = import_ti_python_core()
File "e:\code\cplusplus\taichi\python\taichi\_lib\utils.py", line 57, in import_ti_python_core
raise e from None
File "e:\code\cplusplus\taichi\python\taichi\_lib\utils.py", line 46, in import_ti_python_core
from taichi._lib.core import taichi_python as core # pylint: disable=C0415
ImportError: DLL load failed while importing taichi_python: 找不到指定的模块。
Consider installing Microsoft Visual C++ Redistributable: https://aka.ms/vs/16/release/vc_redist.x64.exe
I installed 'vc_redis.x64.exe' but still did not solve the problem.
I'm wondering how compiling Taichi in this way can be imported by a Python program?
Now I have solved the problem: ImportError: DLL load failed while importing taichi_python: The specified module could not be found.
Instead of compiling Taichi in Debug mode, I set the environment variable to 0;
However, debugging in VS 2022 still reported an error: the python.c source file could not be found.
Hi everyone, I now want to develop and debug the Taichi project on Windows through Visual Studio 2022. After I built the project using the debug configuration documentation on the Taichi website: https://docs.taichi-lang.cn/docs/windows_debug, a puzzling exception appeared in Step 4.
The project was successfully built at run time without error, but the debugging did not break at the breakpoint, but directly exited.
Is there something wrong with my process of building Taichi? Here's how I built from the source code:
The LLVM Debug build process is as follows:
Then I open
... /taichi/_skbuild/win-amd64-3.9/cmake-build/taichi. sln
, the debugging environment is as follows:The result is above!