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

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

Open
itsnumpty opened this issue Jun 9, 2024 · 4 comments
Open

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

itsnumpty opened this issue Jun 9, 2024 · 4 comments

Comments

@itsnumpty
Copy link

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
Copy link
Collaborator

you may need to install cmake etc

@itsnumpty
Copy link
Author

you may need to install cmake etc

cmake is installed on my machine prior to this error.

@nikhil-swamix
Copy link

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
Copy link

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

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

4 participants