Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler Failed #71

Open
Super1Windcloud opened this issue Jan 23, 2025 · 0 comments
Open

compiler Failed #71

Super1Windcloud opened this issue Jan 23, 2025 · 0 comments

Comments

@Super1Windcloud
Copy link

use rust nightly 1. 86 , python 3.10 or python 3.12

python 3.10 error


Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00011084 (most recent call first):
  <no Python frame>
error: could not compile `json_repair_rs` (lib)
Caused by:

python 3.12 err

rror: linking with `link.exe` failed: exit code: 1181
  |
  = note: "A:\\VS2022\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64\\link.exe" "/DEF:A:\\user_tempfile\\rustcjVCAvD\\lib.def" "/NOLOGO" "A:\\user_tempfile\\rustcjVCAvD\\symbols.o" "<4 object files omitted>" "A:\\Rust_Project\\json_repair_rs\\target\\debug\\deps\\inline_python_macros-0e1c11b56f5f8a0a.f5i2k2kaij1rv442o7orhb1mi.rcgu.rmeta" "<1 object files omitted>" "A:\\Rust_Project\\json_repair_rs\\target\\debug\\deps/{libquote-d56d1bf56c8f81e3.rlib,libpyo3-400cbbda4eea8ba7.rlib,libmemoffset-f1221ea8c7fc2776.rlib,libparking_lot-7d2b272714a11368.rlib,libparking_lot_core-cb597d9fe350321c.rlib,libwindows_targets-dd8cca008988cf75.rlib,libcfg_if-120b7212e7bc72ec.rlib,libsmallvec-cc4c87db6e4c8e93.rlib,liblock_api-6f116e7c0c710338.rlib,libscopeguard-4a1404f096e49870.rlib,libpyo3_ffi-9e12246ac5331c53.rlib,liblibc-aa88b5a1f839ec35.rlib,libproc_macro2-0863209e92210f92.rlib,libunicode_ident-430f7f655e337159.rlib}" "A:\\Rustup_Home\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libproc_macro-129cc6c1b24041e8.rlib,libstd-82c97f51c5d241f6.rlib,libpanic_unwind-fe28c667dce49905.rlib,libwindows_targets-1d4006c979056c44.rlib,librustc_demangle-782d7534d22b54a1.rlib,libstd_detect-fa866ace9b4fee5f.rlib,libhashbrown-7b406f8c8ea849d7.rlib,librustc_std_workspace_alloc-f1449650dc2b1788.rlib,libunwind-650ba040b778a4d8.rlib,libcfg_if-aa7b4a696dbde8b8.rlib,liballoc-f5bc502ed7a79ac7.rlib,librustc_std_workspace_core-23195f77730b04f8.rlib,libcore-aaa235beee8a8938.rlib,libcompiler_builtins-6b6ebfd1a3d17cd1.rlib}" "A:\\Cargo_Cache\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\windows_x86_64_msvc-0.52.6\\lib\\windows.0.52.0.lib" "python310.lib" "legacy_stdio_definitions.lib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:A:\\Cargo_Cache\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\windows_x86_64_msvc-0.52.6\\lib" "/LIBPATH:A:\\vfox_sdk\\python\\current\\libs" "/OUT:A:\\Rust_Project\\json_repair_rs\\target\\debug\\deps\\inline_python_macros-0e1c11b56f5f8a0a.dll" "/OPT:REF,NOICF" "/DLL" "/IMPLIB:A:\\Rust_Project\\json_repair_rs\\target\\debug\\deps\\inline_python_macros-0e1c11b56f5f8a0a.dll.lib" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:A:\\Rustup_Home\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:A:\\Rustup_Home\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:A:\\Rustup_Home\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:A:\\Rustup_Home\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: LINK : fatal error LNK1181: 无法打开输入文件“python310.lib”␍
          
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant