Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

New Ubuntu user, blockly games build fails

84 views
Skip to first unread message

Ilias Birdas

unread,
Dec 9, 2024, 8:27:51 AM12/9/24
to Blockly
Dear all

I made a fresh Ubuntu installation as VM in Synology (I tried in windows and it would not progress either)
I want to use it for educations purposes , to study blockly games and make a paper related to it. At later stages I will modify some functions and add to is .
However I am far from any of it as I am stuck with the building phase.
I have spent days in the internet following any possible hint I could find to get it started . sometimes I got further than others but my progress is not repeatable . sometimes following tips on svn, java, npm , thir party instllations , which i do not fully get, some things progress other break.
I will start a clean attempt and would appreciate any help on the way

  • I download the zip from neil Frazer
  • I unzipped in Downloads/blockly-games-main
  • I go to the folder and run make deps
$ make deps
Found `unzip`
Found `wget`
Found `java`
Makefile:54: *** Please install `python`.  Stop.

however I do have python installed (java also)
Python 3.10.12 (main, Nov  6 2024, 20:22:13) [GCC 11.4.0] on linux
openjdk version "11.0.25" 2024-10-15

any ideas how to move on?

Regards

Neil Fraser

unread,
Dec 9, 2024, 8:33:36 AM12/9/24
to blo...@googlegroups.com
Looks like python isn't in your path?  Or maybe it's 'python3', and doesn't have a symlink that lets 'python' run it too?

All the build system is doing is doing a test run of 'python' (same as the previous three required programs) and seeing if something responds.

Let me know if this is enough, or if you need more detailed help.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/a57bfa20-961c-4740-838d-1930ad8befb6n%40googlegroups.com.


--
Neil Fraser, Switzerland
https://neil.fraser.name

Ilias Birdas

unread,
Dec 11, 2024, 2:03:47 PM12/11/24
to blo...@googlegroups.com
Thank you for replying to my email
I worked out the PATH for python (must have looked a silly question to you ) and I was able to proceed with the build
I try to make my apache run the pages
I go that far as seen below:/blockly-games/main/server/
image.png
however when I go into the html folder nothing happens
a blank page is loading, the header reads blockly games but nothing happens

same if I manually type /blobkly-games-main/server/html/maze.html for example

any tips or ideas what is missing?

Kind Regards
Ilias


You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/4oAT2TD56qU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/CAEx9HWHL3zPdiM4fjrUuZG_YrxPyycVeYim1wyuQqyJUDs5ixw%40mail.gmail.com.

Jos

unread,
Dec 12, 2024, 10:03:15 AM12/12/24
to Blockly
Hi Ilias,

is `make deps` finishing correctly?

The Makefile downloads a few folders through svn, and I believe that functionality is not supported anymore on github. The export lines that start at https://github.com/google/blockly-games/blob/master/Makefile#L63 might need to be changed.
To test, you could download those dependencies manually and see if it fixes the issue, if you are seeing the script failing at all.

cheers,
Jose

Neil Fraser

unread,
Dec 12, 2024, 10:09:49 AM12/12/24
to blo...@googlegroups.com
Am Do., 12. Dez. 2024 um 16:03 Uhr schrieb Jos <josmas...@gmail.com>:
The Makefile downloads a few folders through svn, and I believe that functionality is not supported anymore on github. The export lines that start at https://github.com/google/blockly-games/blob/master/Makefile#L63 might need to be changed.

The issue you raised regarding SVN was resolved a year ago.  However there's ongoing confusion since Google is hosting an orphaned repo and hasn't yet added the required redirect.  The authoritative and active repo is here:

Neil Fraser

unread,
Dec 12, 2024, 10:16:10 AM12/12/24
to blo...@googlegroups.com
Am Mi., 11. Dez. 2024 um 20:03 Uhr schrieb Ilias Birdas <birdas...@gmail.com>:
however when I go into the html folder nothing happens
a blank page is loading, the header reads blockly games but nothing happens

same if I manually type /blobkly-games-main/server/html/maze.html for example

Open your browser's console, and check to see if there's an error being thrown when you load server/html/index.html

You can also simplify your setup by not using a web server; you can point directly at the files from the browser using file://...

Jose Dominguez

unread,
Dec 12, 2024, 10:30:35 AM12/12/24
to blo...@googlegroups.com
Can confirm that the active repo works for me; deps are good and
opening the html file works too.
Just to note, Firefox will open the files but Brave will not. It shows
a blank page and the console error: `Not allowed to load local
resource:...`.

cheers,
José
> --
> You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/4oAT2TD56qU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/blockly/CAEx9HWH6DCrHJTySrftqjGE1JWpj8WebKo0%2BJuWLeVFxAPtOSg%40mail.gmail.com.

Ilias Birdas

unread,
Dec 12, 2024, 2:39:27 PM12/12/24
to blo...@googlegroups.com
I tried directly opening the HTML for various blockly games and there are errors indeed in the console

Loading failed for the <script> with source “file:///E:/blockly-games-main/server/html/maze/generated/msg/en.js”. maze.html:1:1
Loading failed for the <script> with source “file:///E:/blockly-games-main/server/html/maze/generated/compressed.js”. maze.html:1:1

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/4oAT2TD56qU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.

Neil Fraser

unread,
Dec 12, 2024, 2:47:00 PM12/12/24
to blo...@googlegroups.com
Sounds like the build script didn't complete (or hasn't been run).  I assume you are following the wiki?  If so, were there any errors during the execution of 'make games'?  You can just use 'make maze' to reduce the scope of the compilation to get just one game working before compiling the rest.

You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/CACROjn8jgpkT0bC8M2MWkTmb7-u7Xw3x6G-qSBJ23MN8odupnw%40mail.gmail.com.

Ilias Birdas

unread,
Dec 13, 2024, 11:45:29 AM12/13/24
to blo...@googlegroups.com
I edited the Makefile and all commands that referred to python I had to rename to python3
this allowed me to complete the build and I am able to open the games in Firefox (Ubuntu) , all games.

now my real task starts as I will have to extend the Maze game with indicative functionality as part of my paper and rebuild it.

I cant thank you enough for the help you provided .

Regards
Ilias


Jose Dominguez

unread,
Dec 13, 2024, 12:00:15 PM12/13/24
to blo...@googlegroups.com
Hey Ilias,

Great to hear you are all sorted. If you want to clean up your setup,
there is a package that you can get with apt called python-is-python3
https://packages.ubuntu.com/focal/python-is-python3

Or you can simply symlink python3 to python, which is what the package
does. Either way, you don't have to make changes to the build files
and keep your git history clean (if you are using git).

cheers,
José
> To view this discussion visit https://groups.google.com/d/msgid/blockly/CACROjn98A2_PywyyQtEF7D9X2gPg4pmmg6x12Gx7Qbz6-2e16Q%40mail.gmail.com.

Neil Fraser

unread,
Dec 13, 2024, 2:19:19 PM12/13/24
to blo...@googlegroups.com
Make sure you do your development in 'uncompressed mode'.  Visit the admin page to switch the compression on and off.  That way you don't need to recompile after every change, just save your editor and reload the page.


Reply all
Reply to author
Forward
0 new messages