MrNothing / AI-Blocks

A powerful and intuitive WYSIWYG interface that allows anyone to create Machine Learning models!
https://mrnothing.github.io/AI-Blocks/index.html
Other
1.87k stars 224 forks source link

Mac/Linux support #2

Closed MrNothing closed 6 years ago

MrNothing commented 6 years ago

Todo: Modify ProjectRunner.js so that it becomes crossplatform when spawning the python.exe process.

MrNothing commented 6 years ago

Avaliable here: https://github.com/MrNothing/AI-Blocks/releases/tag/v1.4.2-beta

Has yet to be tested.

CrypticCalamari commented 6 years ago

Testing on Kali Linux with xfce4 window manager. When I run the project, it opens a blank window, which takes some time before anything appears. At first I didn't think it was working and closed the window, but tried again and became distracted before coming back to see everything loaded.

Perhaps a loading indicator during application startup.

As for creating a new project. I can't seem to figure out how to do this. When I select a folder and name for the project then click create under empty project, nothing seems to happen. When I click clone under the MNIST-classifier or Auto-Encoder I get this error: Failed to load example: Error: ENOENT: no such file or directory, scandir '/home/username/Testy McTestFace\'

MrNothing commented 6 years ago

Thank you for taking the time to test this version, I will debug it on my vm, It seems the relative path is different on linux and windows. That is the cause of your problems.

MrNothing commented 6 years ago

Fixed and tested for linux 64, check next release (release 5). I cannot debug on mac for now, the mac version will have to wait.

MrNothing commented 6 years ago

All versions fixed: see #8

jmelgarmartin commented 6 years ago

how can I launch the program on linux?

MrNothing commented 6 years ago

@jmelgarmartin Either build the sources or download one of the linux builds: https://github.com/MrNothing/AI-Blocks/releases

jmelgarmartin commented 6 years ago

I download the source for linux but I can't find an executable sh or file

MrNothing commented 6 years ago

@jmelgarmartin The executable file is a file called AI-Blocks that you can launch using the command:

./AI-Blocks

if you encouter an error, you might need to install this package:

apt-get install libgconf-2-4

Tested and validated on ubuntu 18.04 64bit Hope this helps.

idea-launch-lab commented 4 years ago

Hello, Seems like a nice project! Looking to build and use on a Mac (Mojave OSX 10.14.6). I grabbed the source code AI-Blocks-1.5.2-beta and tried to build it per instructions in the README.md file.

$ npm run
Lifecycle scripts included in aiblocs:
  start
    react-scripts start
  test
    react-scripts test --env=jsdom

available via `npm run-script`:
  run
    electron -r babel-register .
  build
    react-scripts build
  eject
    react-scripts eject

Tried to build build but getting following error:

$ npm run build

> aiblocs@0.1.0 build /Users/sid/Documents/Thinci/Projects/Experiments/visual_editor/AI-Blocks-1.5.2-beta/Sources
> react-scripts build

Could not find a required file.
  Name: index.html
  Searched in: /Users/x/Documents/AI-Blocks-1.5.2-beta/Sources/public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! aiblocs@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the aiblocs@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/x/.npm/_logs/2019-09-25T15_38_35_128Z-debug.log

I am missing the Sources/public folder, but isn't it the purpose of npm run build to create the outputs and build the public folder? Thanks for your help!

MrNothing commented 4 years ago

Hi, I suggest simply cloning the project and launching from the Sources folder, by typing npm run test. Most packages are now getting old and may be deprecated.

Let me know if you still have the same problem.

Have a nice day!

On Wed, 25 Sep 2019 at 17:41, sid thakur notifications@github.com wrote:

Hello, Seems like a nice project! Looking to build and use on a Mac (Mojave OSX 10.14.6). I grabbed the source code AI-Blocks-1.5.2-beta and tried to build it per instructions in the README.md file.

$ npm run Lifecycle scripts included in aiblocs: start react-scripts start test react-scripts test --env=jsdom

available via npm run-script: run electron -r babel-register . build react-scripts build eject react-scripts eject

Tried to build build but getting following error:

$ npm run build

aiblocs@0.1.0 build /Users/sid/Documents/Thinci/Projects/Experiments/visual_editor/AI-Blocks-1.5.2-beta/Sources react-scripts build

Could not find a required file. Name: index.html Searched in: /Users/x/Documents/AI-Blocks-1.5.2-beta/Sources/public npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! aiblocs@0.1.0 build: react-scripts build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aiblocs@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/x/.npm/_logs/2019-09-25T15_38_35_128Z-debug.log

I am missing the Sources/public folder, but isn't it the purpose of npm run build to create the outputs and build the public folder? Thanks for your help!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/MrNothing/AI-Blocks/issues/2?email_source=notifications&email_token=ABG37AOG2D6RZX44T7HRCU3QLOBDNA5CNFSM4EEK7SDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SLVDA#issuecomment-535083660, or mute the thread https://github.com/notifications/unsubscribe-auth/ABG37AIBTZM4SGIZYRYY34TQLOBDNANCNFSM4EEK7SDA .

idea-launch-lab commented 4 years ago

Thanks @MrNothing for the quick response.

Cloned the repository and installed npm packages.

Ran the following:

$ npm run test

> aiblocs@0.1.5 test /Users/x/Documents/AI-Blocks/Sources
> electron -r babel-register 

The app launches but I see a blank app screen.

image

Thanks.

MrNothing commented 4 years ago

Can you open the console? in your menu, view->developper tools then open the console tab.

On Wed, 25 Sep 2019 at 18:48, sid thakur notifications@github.com wrote:

Thanks @MrNothing https://github.com/MrNothing for the quick response.

Cloned the repository and installed npm packages.

Ran the following:

$ npm run test

aiblocs@0.1.5 test /Users/x/Documents/AI-Blocks/Sources electron -r babel-register

The app launches but I see a blank app screen.

[image: image] https://user-images.githubusercontent.com/5922613/65621961-b831c700-df92-11e9-8e3e-db6563b860d7.png

Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrNothing/AI-Blocks/issues/2?email_source=notifications&email_token=ABG37AIFKFS7I5D2HNGCFELQLOI6XA5CNFSM4EEK7SDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SSP6A#issuecomment-535111672, or mute the thread https://github.com/notifications/unsubscribe-auth/ABG37ANDY4NY7HAQR7XZREDQLOI6XANCNFSM4EEK7SDA .

idea-launch-lab commented 4 years ago

Here's the console output: image

MrNothing commented 4 years ago

I will work on updating the project to webpack, the libraries are getting old, I will tell you when the new version is up.

On Thu, 26 Sep 2019 at 20:01, sid thakur notifications@github.com wrote:

Here's the console output: [image: image] https://user-images.githubusercontent.com/5922613/65712974-272c2000-e066-11e9-99df-24d5542be740.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrNothing/AI-Blocks/issues/2?email_source=notifications&email_token=ABG37AIB624ZYJQ6UCO6FA3QLT2JHA5CNFSM4EEK7SDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WORGI#issuecomment-535619737, or mute the thread https://github.com/notifications/unsubscribe-auth/ABG37APLVYLJRPNOMKP2YB3QLT2JHANCNFSM4EEK7SDA .

MrNothing commented 4 years ago

@sid-thakur Try pulling the latest version, it should run properly.

idea-launch-lab commented 4 years ago

Thanks @MrNothing I was able to see the interface, but looks like reference to base/parent folder is missing. Clicking on the icon 'open folder' causes some exceptions in the console. Namely, Same happens when I try to ether clone a project or create an empty project. Thanks.

image image
MrNothing commented 4 years ago

Hi, these are some mac specific bugs with electron, I will fix them asap and let you know.

Have a great day!

On Fri, 11 Oct 2019 at 04:41, sid thakur notifications@github.com wrote:

Thanks @MrNothing https://github.com/MrNothing I was able to see the interface, but looks like reference to base/parent folder is missing. Clicking on the icon 'open folder' causes some exceptions in the console. Namely, Same happens when I try to ether clone a project or create an empty project. Thanks.

[image: image] https://user-images.githubusercontent.com/5922613/66620467-94839900-ebae-11e9-988a-65881789898e.png

[image: image] https://user-images.githubusercontent.com/5922613/66620550-eaf0d780-ebae-11e9-9c2e-ab58a69a61c4.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrNothing/AI-Blocks/issues/2?email_source=notifications&email_token=ABG37AICKPILRQS7IFSI36DQN7RT7A5CNFSM4EEK7SDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6RXGA#issuecomment-540875672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG37ALDGWSZIEI6FTCVK23QN7RT7ANCNFSM4EEK7SDA .

MrNothing commented 4 years ago

Hi, this was due to a newer version of electron, i apologize for that. Everything should be working now, just pull the latest changes.

On Tue, 15 Oct 2019 at 11:03, Boris Musarais boris1284@gmail.com wrote:

Hi, these are some mac specific bugs with electron, I will fix them asap and let you know.

Have a great day!

On Fri, 11 Oct 2019 at 04:41, sid thakur notifications@github.com wrote:

Thanks @MrNothing https://github.com/MrNothing I was able to see the interface, but looks like reference to base/parent folder is missing. Clicking on the icon 'open folder' causes some exceptions in the console. Namely, Same happens when I try to ether clone a project or create an empty project. Thanks.

[image: image] https://user-images.githubusercontent.com/5922613/66620467-94839900-ebae-11e9-988a-65881789898e.png

[image: image] https://user-images.githubusercontent.com/5922613/66620550-eaf0d780-ebae-11e9-9c2e-ab58a69a61c4.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrNothing/AI-Blocks/issues/2?email_source=notifications&email_token=ABG37AICKPILRQS7IFSI36DQN7RT7A5CNFSM4EEK7SDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6RXGA#issuecomment-540875672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG37ALDGWSZIEI6FTCVK23QN7RT7ANCNFSM4EEK7SDA .

idea-launch-lab commented 4 years ago

Thanks! I was able to run the application and see expected behavior on my Mac (Mojave). Thanks for all the help!

image