Code Monkey home page Code Monkey logo

Comments (7)

patientplatypus6 avatar patientplatypus6 commented on July 16, 2024 1

And mine -

peterweyand@Peters-MacBook-Pro mozjs % sw_vers
ProductName:		macOS
ProductVersion:		13.1
BuildVersion:		22C65

Thanks coreyja!

from mozjs.

patientplatypus6 avatar patientplatypus6 commented on July 16, 2024

Deleting the Cargo.lock and reinstalling. One sec....

from mozjs.

patientplatypus6 avatar patientplatypus6 commented on July 16, 2024

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.

coreyja avatar coreyja commented on July 16, 2024

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.

patientplatypus6 avatar patientplatypus6 commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.