tursodatabase / libsql-experimental-python

libSQL API for Python (experimental)
87 stars 9 forks source link

Failed Pip Install - libsql-ffi v0.2.1 #63

Open itsnumpty opened 3 months ago

itsnumpty commented 3 months ago

error: failed to run custom build command forlibsql-ffi v0.2.1 (https://github.com/penberg/libsql/?rev=5a806fe53cc84a5a49853d4ae30bad64b7210c67#5a806fe5)`

  Caused by:
    process didn't exit successfully: `C:\Users\<>\AppData\Local\Temp\pip-install-kwpyryow\libsql-experimental_12cb8194173940f88b6ecbc5b9c5d2ec\target\release\build\libsql-ffi-8105b99e0fa61d6e\build-script-build` (exit code: 101)
    --- stdout
    cargo:rerun-if-changed=bundled/src/sqlite3.c
    cargo:rerun-if-changed=bundled/SQLite3MultipleCiphers/build/libsqlite3mc_static.a
    cargo:lib_dir=C:\Users\<>\AppData\Local\Temp\pip-install-kwpyryow\libsql-experimental_12cb8194173940f88b6ecbc5b9c5d2ec\target\release\build\libsql-ffi-627ab9f5a78bbde9\out
    Running `cmake` with options: -DCMAKE_BUILD_TYPE=Release -DSQLITE3MC_STATIC=ON -DCODEC_TYPE=AES256 -DSQLITE3MC_BUILD_SHELL=OFF -DSQLITE_SHELL_IS_UTF8=OFF -DSQLITE_USER_AUTHENTICATION=OFF -DSQLITE_SECURE_DELETE=OFF -DSQLITE_ENABLE_COLUMN_METADATA=ON -DSQLITE_USE_URI=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON

    --- stderr
    thread 'main' panicked at C:\Users\<>\.cargo\git\checkouts\libsql-e519d6234c1a233a\5a806fe\libsql-ffi\build.rs:358:33:
    called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "program not found" }
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  warning: build failed, waiting for other jobs to finish...
  💥 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\<>\\AppData\\Local\\Temp\\pip-install-kwpyryow\\libsql-experimental_12cb8194173940f88b6ecbc5b9c5d2ec\\Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\<>\\AppData\\Local\\Programs\\Python\\Python310\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1`

Cannot pip install, fails build. This was closed off for OS X but no fix found for Windows.

LucioFranco commented 3 months ago

you may need to install cmake etc

itsnumpty commented 3 months ago

you may need to install cmake etc

cmake is installed on my machine prior to this error.

nikhil-swamix commented 1 month ago

this is a blocker for all windows users. can confirm image python 3.12 everything is installed! cmake msvc, so problem is with dependencies or packages.

PrinceBaghel258025 commented 1 month ago

guys, was having the same problem but it got resolved after installing rust and cmake in my windows machine able to install 0.0.38 version inside a poetry env