Giter Club home page Giter Club logo

Comments (12)

MrNothing avatar MrNothing commented on May 26, 2024 1

One quick fix if you run the project from the sources is to modify the file ProjectRunner.js and replace const exec = spawn('python', [folder+'/main.py']); with const exec = spawn('python3', [folder+'/main.py']); until i implement custom commands. I'm sorry for the inconvenience.

from ai-blocks.

MrNothing avatar MrNothing commented on May 26, 2024

Hi,
Thank you for using AI-Blocks, you need to install python 3.0+ for the program to work. Make sure there is a reference to python.exe in the path as well. I also suggest updating Tensorflow (not mandatory).

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

@MrNothing thank you for your reply. Btw, can it run in a anaconda environment and how?

from ai-blocks.

MrNothing avatar MrNothing commented on May 26, 2024

Conda environments are not supported for the moment, I am planning on adding the option since it would not be very hard to do on my side. I will let you know when this is implemented.

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

My default python interpreter in Ubuntu14.04 is 2.7 and I often use anaconda3 evironment to run python files. So, how to let AI-blocks run under python3?

from ai-blocks.

MrNothing avatar MrNothing commented on May 26, 2024

you would need to update python from 2.7 to 3.5. You can follow these instructions: https://superuser.com/questions/241865/updating-python-on-ubuntu-system

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

I already have python3 in my ubuntu. Just run the command python3 instead of python. But by default, i think the system choose python2.7 to run. I just find a solution here, https://askubuntu.com/questions/590027/how-to-set-python-3-as-default-interpreter-in-ubuntu-14-04/590030. Can this make available by adding an alias for python to run python3?

from ai-blocks.

MrNothing avatar MrNothing commented on May 26, 2024

The issue is that python is executed from my command prompt (more specifically, i spawn a default console process) on AI-Blocks' side. I would need to add the alias on this subprocess, unless the alias command could be made global which i doubt.

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

thank you very much, I will try it when I am back home. :) +1:

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

@MrNothing  I can't find the file ProjectRunner.js in your file AI-blocks.I download the file linux-x64.7z (v1.6.15) and unziped it directly in my ubuntu.

from ai-blocks.

MrNothing avatar MrNothing commented on May 26, 2024

It only works if you run the project from the sources, if you take the prebuilt Linux version, the sources are not avaliable. Running the project from the sources is a tedious task as it requires to have other dependencies installed such as npm and electron.

from ai-blocks.

lk1983823 avatar lk1983823 commented on May 26, 2024

okay thx. And using the prebuilt Linux version, when I want to add script, it shows dark background and nothing else.

from ai-blocks.

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.