Coder Social home page Coder Social logo

Comments (12)

agrawal-d avatar agrawal-d commented on July 29, 2024 1

@agrawal-d Please link the issue to the PR.

Done! Thanks for creating the issue.

from cph.

agrawal-d avatar agrawal-d commented on July 29, 2024 1

If you mention the issue number in one of the commit messages (usually the 'main' commit, or if not, the last commit) like this: Closes #19., then the issue gets linked automatically.

from cph.

agrawal-d avatar agrawal-d commented on July 29, 2024 1

@agrawal-d May I start working on this issue?
Sure, thanks!

Because we are not going to generate bytecode manually, we can use the default version of Python on the host which is accessible using python command.

Here's what I like:
By default we execute with python3, but if spawn gives an error, we execute python. If both give an error, we ignore/show error message.

from cph.

mr2rm avatar mr2rm commented on July 29, 2024

I've already created #18 PR for this issue which is waiting for review now.
@agrawal-d Please link the issue to the PR.

from cph.

karan221 avatar karan221 commented on July 29, 2024

Python support does not work on my pc. I have python 3.8 installed on windows 10 and it runs by the command 'python' in cmd. Apparently extension is running the command 'python3' that does not work on my pc.
Temporarily I copied the python.exe file and pasted it as python3.exe in installation directory and it works for now.
plz fix this.

from cph.

mr2rm avatar mr2rm commented on July 29, 2024

Python support does not work on my pc. I have python 3.8 installed on windows 10 and it runs by the command 'python' in cmd. Apparently extension is running the command 'python3' that does not work on my pc.
Temporarily I copied the python.exe file and pasted it as python3.exe in installation directory and it works for now.
plz fix this.

Since both Python 2 and 3 usually are available in the hosts, I wanted to support both of them in the extension; but later I decided to use the default Python version of the host (as python). Because both Python 2 and 3 will be supported (host admin is responsible for it) and also we can use python as the executable command .

Finally because of some issues, me and @agrawal-d decided to support only Python 3 for now which usually exposes python3 as the command.

Now the issues are resolved an it's feasible to use the python as the default command.
@agrawal-d May I start working on this issue?

from cph.

agrawal-d avatar agrawal-d commented on July 29, 2024
  • @mr2rm how do you plan to resolve this?
  • What if default Python is Python 2?
  • What if there is no Python 3?

from cph.

mr2rm avatar mr2rm commented on July 29, 2024
  • @mr2rm how do you plan to resolve this?

Because we are not going to generate bytecode manually, we can use the default version of Python on the host which is accessible using python command.

  • What if default Python is Python 2?

So everything will work correctly if the source code supports Python 2.

  • What if there is no Python 3?

Not important, because it will execute the source code using python command which links to Python 2 or 3.

from cph.

mr2rm avatar mr2rm commented on July 29, 2024

By default we execute with python3, but if spawn gives an error, we execute python. If both give an error, we ignore/show error message.

Why do you prefer to execute with python3 by default?
If both versions are available, I prefer python which is linked to default version by the host.
If only one of Python 2 or 3 are available, python command is also works correctly.

from cph.

mr2rm avatar mr2rm commented on July 29, 2024

By default we execute with python3, but if spawn gives an error, we execute python. If both give an error, we ignore/show error message.

Why do you prefer to execute with python3 by default?
If both versions are available, I prefer python which is linked to default version by the host.
If only one of Python 2 or 3 are available, python command is also works correctly.

I'm still waiting for your response...

from cph.

agrawal-d avatar agrawal-d commented on July 29, 2024

Why do you prefer to execute with python3 by default?

No reason, I like this approach better.

from cph.

agrawal-d avatar agrawal-d commented on July 29, 2024

Fixed now.

from cph.

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.