Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python npm-bazel-gen.py hangs #2

Open
pcj opened this issue Oct 7, 2016 · 0 comments
Open

python npm-bazel-gen.py hangs #2

pcj opened this issue Oct 7, 2016 · 0 comments

Comments

@pcj
Copy link

pcj commented Oct 7, 2016

I get a bunch of these stack traces when trying to get started:

$ python npm-bazel-gen.py

...

Exception in thread Thread-16:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "npm-bazel-gen.py", line 125, in worker
    for name, version in get_dependencies(parent_name, resolved_parent_version).viewitems():
  File "npm-bazel-gen.py", line 74, in get_dependencies
    output = json.loads(result_string)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
Exception: error reading dependencies for [email protected]: <
>
Caused by: ValueError: No JSON object could be decoded

Looks like if exception is thrown by get_dependencies, q.task_done() not called and q.join() can't pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant