Giter VIP home page Giter VIP logo

Comments (6)

kareman avatar kareman commented on May 28, 2024

Hmm, could the Python script be exiting without closing its standard output (though I'm pretty sure Python does that automatically)? Currently the “run” function reads the output from the command before it is finished to work around issue #15.

Can you try branch "Issue-19-run-hangs" and see if that fixes the problem? And if it doesn't, would it be possible to send me the Python script so I could try to replicate the problem?

from swiftshell.

tanmayb123 avatar tanmayb123 commented on May 28, 2024

Sure, I'll try it out in a little bit, and get back to you. Thanks!

For now, though, I've worked-around by running "runAndPrint", then have Python save the output to a text file, and read the text file (though I don't intend for this to be a permanent solution)

from swiftshell.

kareman avatar kareman commented on May 28, 2024

How about “runAsync”, does it hang too?

Could you try both

let res = runAsync("python", "ngrammine.py", "source.txt", "destination.txt").stdout.read()

and

let res = try runAsync("python", "ngrammine.py", "source.txt", "destination.txt").finish().stdout.read()

from swiftshell.

tanmayb123 avatar tanmayb123 commented on May 28, 2024

Hi, sorry, I was very busy for a few days, and am about to be for the next few days as well. However, while trying to install SwiftShell, I get #20?

from swiftshell.

kareman avatar kareman commented on May 28, 2024

Are you still having the problem in #20? I can't reproduce it.

from swiftshell.

kareman avatar kareman commented on May 28, 2024

It's been a while since the last update so I'm closing this issue. Feel free to open it again if the problem is still there.

from swiftshell.

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.