Comments (7)
Same issue as nbraud here, though I'm on Ubuntu 20.04. Installing python-is-python3
resolve the issue for me.
from shaderc-rs.
PS: Here is the build log
Compiling shaderc-sys v0.6.1 (.../shaderc-rs/shaderc-sys)
error: failed to run custom build command for `shaderc-sys v0.6.1 (.../shaderc-rs/shaderc-sys)`
Caused by:
process didn't exit successfully: `.../shaderc-rs/target/debug/build/shaderc-sys-260db23ca7914fa3/build-script-build` (exit code: 101)
--- stdout
cargo:warning=Checking for system installed libraries. Use --features = build-from-source to disable this behavior
cargo:warning=System installed library not found. Falling back to build from source
--- stderr
thread 'main' panicked at '
couldn't find required command: "python"
', shaderc-sys/build/cmd_finder.rs:50:13
from shaderc-rs.
I don't think this message is due to Python versions. What OS are you working on, and how did you install Python?
I ran into the same error message on Windows 10 and using the Windows Store version of Python. This doesn't seem to work. My theory is that the build script looks for python.exe
in AppData\Local\Microsoft\WindowsApps
and there is only a link there, not a regular file.
Installing the 3.8.1 "proper release" from the Python site worked for me.
from shaderc-rs.
@johanster This is Debian 11 (bullseye/testing) and my python installation is straight from the Debian repos:
$ apt-cache policy python3
python3:
Installed: 3.7.5-3
Candidate: 3.7.5-3
Version table:
3.8.0-3 1
1 http://localhost:3142/debian experimental/main amd64 Packages
*** 3.7.5-3 990
990 http://localhost:3142/debian bullseye/main amd64 Packages
500 http://localhost:3142/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
The issue seems to be that the python
binary is invoked, even though it should be python3
on most, if not all, Linux distributions.
from shaderc-rs.
I think it makes sense to search and invoke python3
explicitly. But I'm not so familiar with Windows; it would be nice to get @rukai's opinion here given that he did the windows setup steps initially.
from shaderc-rs.
I can't use this library at all because of the Python requirement -- really wish people would eliminate their dependencies on fluff like that.
from shaderc-rs.
21bb994 was landed a while ago to try to search Python3 first. Not sure that's sufficient to address the issue. If not, please open new issues.
from shaderc-rs.
Related Issues (20)
- Updating shaderc version HOT 3
- Linking error when building with target-feature=+crt-static HOT 2
- Unable to build on Ubuntu 20.04 LTS - build wants "python" by name, but which one? HOT 3
- Can't find `/usr/lib/libshaderc_shared.so` HOT 1
- Build fails on Windows with Windows store Python HOT 7
- Can Compiler be Send, even Sync? HOT 1
- cannot find native shaderc library on system but Vulkan-SDK is installed
- Cannot find native shaderc library on system HOT 5
- Requesting a patch release 0.8.2 HOT 1
- [Possible Regression] Link failure on `1.67-x86_64-pc-windows-msvc` HOT 1
- shader_stage pragma for task and mesh not available
- Can't build a lib for Windows with MT_StaticRelease
- Failing to build on mac m1
- dylib not found when running without "cargo run" on macOS Sonoma
- Provide a feature to prefer static linking
- Crates that use shaderc at build time fail to build on docs.rs HOT 5
- Run in CI/GitHub Actions HOT 1
- mingw-w64-x86_64-ninja compiler errors for MSVC rust cargo build
- Extensions? HOT 1
- error: linking with `link.exe` failed: exit code: 1120 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaderc-rs.