Compilation de Blockly sous Ubuntu 17.10

Compilation de Blockly sous Ubuntu 17.10

1/ Erreur.

SUCCESS: blockly_uncompressed.js
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "./build.py", line 162, in run
    self.gen_core()
  File "./build.py", line 193, in gen_core
    self.do_compile(params, target_filename, filenames, "")
  File "./build.py", line 258, in do_compile
    json_data = json.loads(json_str)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

2/ Solution.

Ouvrir :

./build.py

Chercher :

      conn = httplib.HTTPConnection("closure-compiler.appspot.com")

Remplacer par :

      conn = httplib.HTTPSConnection("closure-compiler.appspot.com")

3/ Liens.

https://github.com/google/blockly/issues/1399
http://jeulibre.labak.xyz/minetest-programmation-par-bloc-blockly/

Comments are closed, but trackbacks and pingbacks are open.