Skip to Content
Technical Articles
Author's profile photo Sabarna Chatterjee

Python in Business Application Studio!!!

Hello guys, hope you are doing well.

 

The first scripting language I had tried was “Python”. But what if I try to execute it directly from BAS?

With full of hope in my heart, I have created a folder under ‘projects’:

 

Then I run this command: “sudo apt-get install python3”

python%20install%20command

python install command

 

I tried several things to resolve. But no luck.

“Dear reader, help me in this. ?. Please comment if you have any quick-fix for this.”

 

Just then I found a thing. NODE-Python. ????

 

Installed it in the folder: “npm install python”

 

Let’s see what we can do with this.

Take the Source-code from here(Git Link).

Place your folder should look like –

folder-structure

folder-structure

 

The next thing is “npm app.js”.

Now write whatever you want and press enter to check. Enjoy Py-ing.

This is what I have tried.

execute%20your%20py%20code%20like%20this

execute your py code like this

 

After sometime:

BAS%20got%20chrashedBAS got crashed

 

Anyways, please opine by leaving a comment below.

I will try to update the below Git link if I get any success.

Py OR Die (Git Link)https://github.com/sabarna17/py_or_die_bas

Happy ‘Py-ing’, Happy ‘BAS-ing’.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Denys van Kempen
      Denys van Kempen

      Hi Sabarna,

      Looks like this is not supported (yet).

      Terminal runs inside a Debian 10 virtual machine of which we are 'user' but not 'root'.

      The sudo command is not installed nor can we install it because we are not root (or can su to root unless we know the password).

      We can download Python source code but to compile we need a compiler which is not installed and which we cannot install because we are not root.

      https://www.bobbydurrettdba.com/2020/02/11/python-3-8-1-linux-install-without-root/

       

      Author's profile photo Sabarna Chatterjee
      Sabarna Chatterjee
      Blog Post Author

      Thank you Denys for your incites.?

      Author's profile photo Witalij Rudnicki
      Witalij Rudnicki

      While hacking a bit I got Python3 in my BAS Trial 🙂 So, I have syntax highlight in the editor and I can run the code in the terminal.

      But unfortunately without MS Python extension https://marketplace.visualstudio.com/items?itemName=ms-python.python I cannot get editor integrated with debugger and code execution...

       

      Andrew Lunde , have you gotten anywhere further with https://github.com/andrewlunde/pythonify ?

       

      Regards,
      -Vitaliy

      Author's profile photo Sabarna Chatterjee
      Sabarna Chatterjee
      Blog Post Author

      This is a good option to adopt @Witalij Rudnicki..

      Thanks for sharing.