question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

in build.py self.do_compile (line 274) not returning valid JSON

See original GitHub issue

Problem 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:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
NeilFrasercommented, Oct 27, 2017

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!

0reactions
NeilFrasercommented, Oct 31, 2017

Closure Compiler documentation updates are now in progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return this valid json data in Python? - Stack Overflow
The reason your existing code fails is that str applied to a list of strings will only rarely give you valid JSON. They're...
Read more >
simplejson — JSON encoder and decoder — simplejson 3.18 ...
Deserialize s (a str or unicode instance containing a JSON document) to a Python object. JSONDecodeError will be raised if the given JSON...
Read more >
tensorrt example python - Paddle Tennis Roma
1 TensorRT Python API Reference. results = model (gray) for _, det in enumerate (results. 15. eval() # torch module needs to be...
Read more >
JSON Functions And Operators - SQLite
The JSON functions and operators are built into SQLite by default, ... X is a valid JSON string and returns a minified version...
Read more >
tensorrt example python
1 TensorRT Python API Reference. One such language is Python. jpg but I can not see any detection on the that image Change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found