Git Product home page Git Product logo

Comments (8)

yufenglee avatar yufenglee commented on June 21, 2024

does it persist if you revert the change?

from onnxruntime.

tianleiwu avatar tianleiwu commented on June 21, 2024

One workaround I found is like the following: copy DLLs from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\14.40.33807\onecore\x64\Microsoft.VC143.CRT to my conda environment C:\Users\%USERNAME%\.conda\envs\my_env to overwrite existing DLLs.

Note that installing latest VC Runtime does not work (the downloaded VC Runtime is older than the one installed with latest Visual Studio).

from onnxruntime.

tianleiwu avatar tianleiwu commented on June 21, 2024

does it persist if you revert the change?

Yes, I encountered the issue before the change.

from onnxruntime.

yufenglee avatar yufenglee commented on June 21, 2024

conda uses old vc runtime and it is not compatible with new visual studio compiler. You can run "conda install conda-forge::vs2015_runtime" to upgrade your vc runtime version in conda.

from onnxruntime.

snnn avatar snnn commented on June 21, 2024

One workaround I found is like the following: copy DLLs from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\14.40.33807\onecore\x64\Microsoft.VC143.CRT to my conda environment C:\Users\%USERNAME%\.conda\envs\my_env to overwrite existing DLLs.

Note that installing latest VC Runtime does not work (the downloaded VC Runtime is older than the one installed with latest Visual Studio).

Or just delete the DLLs in conda's directories.

from onnxruntime.

snnn avatar snnn commented on June 21, 2024
Faulting module name: MSVCP140.dll, version: 14.29.30153.0, time stamp: 0x653aa208

In theory this should work ... Could it be a different issue?

from onnxruntime.

snnn avatar snnn commented on June 21, 2024

Oh, @tianleiwu, when you build the code you need to add "--use_binskim_compliant_compile_flags" to your build command, otherwise the changes in #21005 wouldn't take effect. It was because I asked the author to scope the change to a smaller scope that wouldn't effect most people.

from onnxruntime.

tianleiwu avatar tianleiwu commented on June 21, 2024

Adding --use_binskim_compliant_compile_flags solved the issue.

from onnxruntime.

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.