Code Monkey home page Code Monkey logo

Comments (3)

davidlattimore avatar davidlattimore commented on June 26, 2024 3

Seems like a reasonable option to have. I've pushed a change to github that adds the :build_env command.

from evcxr.

bjorn3 avatar bjorn3 commented on June 26, 2024 1

I think the missing LIBTORCH_USE_PYTORCH at the end is the result of Subprocess terminated with status: exit status: 99 and a subsequent restart of the repl process with a fresh environment.

As for the libtorch_cpu.so: cannot open shared object file: No such file or directory, it looks like the build script of tch-rs reads LIBTORCH_USE_PYTORCH an determines which library to have the program link against based on this: https://github.com/LaurentMazare/tch-rs/blob/dca12b647ade36414c09359bade840d5092087d6/torch-sys/build.rs#L206 std::env::set_var("LIBTORCH_USE_PYTORCH", "1"); only affects the repl process itself, not the cargo invocation used to build your program and it's dependencies. To set that env var for cargo you need to start the evcxr jupyter kernel itself with this env var set, which as you say is not possible for you. @davidlattimore maybe we can have a :build_env command for setting env vars for the cargo invocation?

from evcxr.

sergree avatar sergree commented on June 26, 2024

Thank you very much for your help! 🙏🙏🙏

from evcxr.

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.