You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ pip install -r requirements.txt
34
34
```
35
35
#### Notes
36
36
- When running `npm run dev`, pay attention to the `server.proxy` configuration in `vite.config.ts`, it should match the address of the `FastAPI` service you started.
37
-
- If you encounter errors like *Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js"*, it may be that your network cannot access `cdn.jsdelivr.net`. Please find a proxy or acceleration node and replace it in `project.inlang/settings.json`.
37
+
- If you encounter errors like *Couldn't import the plugin "https://xxxxxxxxx.xxx/xxxxxxxxxxxx"*, it may be that your network cannot access `cdn.jsdelivr.net`. Please find a proxy or acceleration node and replace it in `project.inlang/settings.json`.
Copy file name to clipboardExpand all lines: docs/2.User-guide/1.Installation-guide.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,15 @@ We recommend using Anaconda as the Python environment manager.
56
56
```
57
57
58
58
## Possible Issues
59
-
1. If you encounter the error `RuntimeError: Error building extension 'wkv'` and see `nvcc: not found` or similar messages in the error details.
59
+
1. If you encounter the error `Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform`.
60
+
61
+
You need to install the corresponding compiler version used when PyTorch was compiled:
62
+
```bash
63
+
# Install g++, according to your environment
64
+
conda install -c conda-forge gxx_linux-64
65
+
```
66
+
67
+
2. If you encounter the error `RuntimeError: Error building extension 'wkv'` and see `nvcc: not found` or similar messages in the error details.
60
68
61
69
This error may be due to the incorrect nvcc path. If CUDA is not installed, install CUDA. If CUDA is installed, add the CUDA path to the environment variables.
62
70
@@ -65,15 +73,17 @@ We recommend using Anaconda as the Python environment manager.
65
73
## Do not add bin at the end of the path, as it will cause duplicate bin folders
66
74
export CUDA_HOME=/usr/local/cuda-12.3
67
75
```
68
-
2. #error -- unsupported GNU version! gcc versions later than 13 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
76
+
77
+
3. #error -- unsupported GNU version! gcc versions later than 13 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
69
78
70
79
This error occurs because CUDA 11.4 does not support gcc versions higher than 13. You need to downgrade the gcc version. You can install gcc 13.3.0 using conda.
71
80
```bash
72
81
conda install -c conda-forge gcc_linux-64=13.3.0
73
82
# If there is a version mismatch, try the following command
4. If you encounter the error `UnicodeDecodeError: 'gbk' codec can't decode byte 0x84 in position 116: illegal multibyte sequence`,
96
+
5. If you encounter the error `UnicodeDecodeError: 'gbk' codec can't decode byte 0x84 in position 116: illegal multibyte sequence`,
87
97
This error may be due to the open functionin the read_version method in setup.py not matching the file encoding. Modify the open functionto specify the correct encoding, such as utf-8:
88
98
```python
89
99
def read_version():
90
100
with open(os.path.join("darkit", "__init__.py"), encoding="utf-8") as f:
91
101
```
92
102
93
-
5. If you encounter the error `subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1.`,
103
+
6. If you encounter the error `subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1.`,
94
104
This error may be due to the lack of a C++ compiler. The solution is as follows:
95
105
```bash
96
106
sudo apt update
97
107
sudo apt install build-essential
98
108
```
99
109
100
-
6. If you choose to compile Graphviz from source and get error while installing `pip` package `nnviz`, probably the path of Graphviz installation is not specified. Please append the path to Graphviz installation in`C_INCLUDE_PATH`, `LD_FLAGS` and `LD_LIBRARY_PATH`.
110
+
7. If you choose to compile Graphviz from source and get error while installing `pip` package `nnviz`, probably the path of Graphviz installation is not specified. Please append the path to Graphviz installation in`C_INCLUDE_PATH`, `LD_FLAGS` and `LD_LIBRARY_PATH`.
1. 如果在执行的过程中遇到了 `RuntimeError: Error building extension 'wkv'` 的错误,并且在错误详细信息中看到了 `nvcc: not found` 或类似的消息。
64
+
1. 如果在执行过程中遇到了 `Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform` 的错误。
65
+
66
+
需要根据 PyTorch 编译时使用的编译器版本安装相应的编译器:
67
+
```bash
68
+
# 安装 g++, 根据你的环境
69
+
conda install -c conda-forge gxx_linux-64
70
+
```
71
+
2. 如果在执行的过程中遇到了 `RuntimeError: Error building extension 'wkv'` 的错误,并且在错误详细信息中看到了 `nvcc: not found` 或类似的消息。
65
72
66
73
那么这个错误的原因可能是因为没有找到正确的 nvcc 的路径。如果没有安装 CUDA,则需要安装 CUDA。如果安装了 CUDA 则需要将 CUDA 的路径添加到环境变量中。
67
74
@@ -70,15 +77,15 @@
70
77
## 不要在路径后面加 bin,否则会导致重复的 bin 文件夹
71
78
export CUDA_HOME=/usr/local/cuda-12.3
72
79
```
73
-
2. #error -- unsupported GNU version! gcc versions later than 13 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
80
+
3. #error -- unsupported GNU version! gcc versions later than 13 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
0 commit comments