Giter Club home page Giter Club logo

Comments (10)

stevengj avatar stevengj commented on May 29, 2024

As of #14, miniconda now no longer installs on Pkg.build("Conda"), but only if Conda is actually needed to install something. So, people who already have Python are not affected by this.

from conda.jl.

davidanthoff avatar davidanthoff commented on May 29, 2024

Ah, that is good. Lets hope this can get fixed upstream, it still is a nasty bug.

from conda.jl.

Luthaf avatar Luthaf commented on May 29, 2024

it still is a nasty bug.

Yes it is! I can disable the silent install for now.

from conda.jl.

stevengj avatar stevengj commented on May 29, 2024

If you disable silent install, does that mean that users have to click through some dialogs? If they make the wrong choices, will it screw up the install?

from conda.jl.

Luthaf avatar Luthaf commented on May 29, 2024

I do not know. I'll have to test.

from conda.jl.

davidanthoff avatar davidanthoff commented on May 29, 2024

Another option might be to test whether the Outlook.exe process is running before the miniconda process is started, and if it is running, just throw an error with a message that users should shutdown Outlook and then repeat the last operation. And then hope that they fix this upstream and then remove this check again.

Checking is probably easiest done using Powershell, the command Get-Process Outlook should probably do it, I think one would just have to check whether that throws an error (not running) or returns something (running).

from conda.jl.

stevengj avatar stevengj commented on May 29, 2024

There is a win32 API to get the list of running processes, but I agree that PowerShell seems a lot easier.

Presumably, this check only needs to be in Conda._install.

from conda.jl.

Luthaf avatar Luthaf commented on May 29, 2024

How can we call powershell from Julia? I am not a windows expert at all ...

from conda.jl.

davidanthoff avatar davidanthoff commented on May 29, 2024

I think something like this should work

try
  run(`powershell "Get-Process Outlook"`)
  println("Outlook is running")
catch e
  println("Outlook is not running")
end

Obviously you need to adjust a bit, but the general theme should be this.

from conda.jl.

Luthaf avatar Luthaf commented on May 29, 2024

@davidanthoff this is implemented in the windows branch, in commit dba9262. Can you give it a look and test whether the error is issued if Outlook is running?

from conda.jl.

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.