Comments (7)
And mine -
peterweyand@Peters-MacBook-Pro mozjs % sw_vers
ProductName: macOS
ProductVersion: 13.1
BuildVersion: 22C65
Thanks coreyja!
from mozjs.
Deleting the Cargo.lock and reinstalling. One sec....
from mozjs.
OK. So I didn't know if this crate itself was the issue when downloading Servo or if it was a dependency issue within Servo itself but it's definitely this crate. I cargo-cache --remove-dir all
cloned the repo, ran sudo cargo build
and had the above error. This line
FileNotFoundError: [Errno 2] No such file or directory: '/Users/peterweyand/Code/servo/target/release/build/mozjs_sys-c9599b8984f352e1/out/build/_virtualenvs/build/lib/python3.10/site-packages/mach.pth'
made me think that there was an issue with python somewhere so I update python and pip through homebrew and reran. Same error. Why is this happening?
from mozjs.
Was in Discord with @patientplatypus6 and tried to compile as well and got a very similiar error
FileNotFoundError: [Errno 2] No such file or directory: '/Users/coreyja/src/mozjs/target/debug/build/mozjs_sys-a86259d36c1dbf46/out/build/_virtualenvs/build/lib/python3.10/site-packages/mach.pth'
OS Version Info in case it helps
✦ [13:17] sw_vers
ProductName: macOS
ProductVersion: 13.0.1
BuildVersion: 22A400
from mozjs.
Found the issue - https://bugzilla.mozilla.org/show_bug.cgi?id=1766497
The hacky solution is to uninstall [email protected]
and install [email protected]
. In [email protected] venv
is used instead of virtualenv
which has been dropped as deprecated and this package uses virtualenv
throughout. Consider adding a flag to a PR that checks python version and then changes supported keyword useage. Don't know how annoying this would be, but moving forward using the deprecated syntax will cause all future versions of python to crash, making this package, and Servo (and other packages that use this package) non-backwards compatible. Thanks.
from mozjs.
Related Issues (20)
- Remove python2 build requirement HOT 11
- It seems that the license file is missing here...
- Are the mozjs_sys and js crates useful in the spidermonkey source tree? HOT 2
- Cannot build for `Windows 10` HOT 1
- Dead Link in README.md HOT 1
- Patch error message for newer macOS SDK to point at relevant docs HOT 1
- Merge mozjs and rust-mozjs into one repo HOT 4
- CI broken with mozilla-build 4.0 HOT 6
- Windows CI breaks when the environment's LLVM doesn't match the version installed by scoop HOT 8
- Remove the workaround for gcc bug.43949? HOT 1
- Add GCMethods and RootKind Implementation for Symbol
- Windows CI is broken HOT 2
- Incorrect Signature for `JS_DeletePropertyById1` HOT 2
- UWP builds are broken HOT 3
- Where is JSContext defined as an opaque type? HOT 2
- error: failed to get `mozjs` as a dependency of package `script v0.0.1 on windows11 system HOT 5
- Builds on Windows with the Beta branch are broken HOT 9
- Incorrect Definition of JS::CreateError
- `type_traits` not found when building on Linux HOT 1
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 mozjs.