in build.py self.do_compile (line 274) not returning valid JSON
See original GitHub issueProblem statement
As of last night, build.py began failing with the following error:
Exception in thread Thread-2: Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py”, line 801, in __bootstrap_inner self.run() File “build.py”, line 176, in run self.gen_core() File “build.py”, line 209, in gen_core self.do_compile(params, target_filename, filenames, “”) File “build.py”, line 274, in do_compile json_data = json.loads(json_str) File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py”, line 339, in loads return _default_decoder.decode(s) File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py”, line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File “/Library/Frameworks/Python.framework/Versions/2.7/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
- [X ] Bug report
- Feature request
What were you trying to do when you hit this bug? Or, what do you want to do with Blockly that your proposed feature would enable?
Trying to compile into compressed files by running build.py
Please describe what should happen. Include screenshots if applicable.
build.py should complete with no errors.
Describe what actually happens. Include screenshots if applicable.
When I run sudo python build.py many modules compile. Right after /msg/js/zh-hant.js, I get the error pasted above.
Explain what someone needs to do in order to see what’s described in Actual behavior above
Stack Traces
Please open up the console. If you see any Blockly-related errors, paste them here.
See above.
Operating System and Browser
-[x] Terminal window OS X
-
Desktop:
- Chrome
- Firefox
- Safari
- Opera
- IE 10+
- IE 11
- EDGE
-
Smartphone/Tablet/Chromebook (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional Information
Anything else we should know?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
PR #1401 fixes everything for the develop branch. PR #1402 fixes everything for the master branch.
If anyone wants to fix this manually, just find “HTTPConnection” in build.py and change it to “HTTPSConnection”. One letter change.
Thanks for the bug report!
Closure Compiler documentation updates are now in progress.