You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run command python -m tmsc https://github.com/apache/spark results in
Number of documents: 112273
WARNING:topic_detector:No BOW cache was loaded.
Traceback (most recent call last):
File "/<>/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/<>/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/<>/tmsc/tmsc/__main__.py", line 71, in <module>
sys.exit(main())
File "/<>/tmsc/tmsc/__main__.py", line 61, in main
"timeout": args.timeout})
File "<>/tmsc/tmsc/topic_detector.py", line 77, in __init__
**(repo2bow_kwargs or {}))
File "/<>/tmsc/tmsc/topic_detector.py", line 21, in __init__
super().__init__(**kwargs)
File "/<>/tmsc/.venv/lib/python3.6/site-packages/ast2vec/repo2/base.py", line 71, in __init__
self._cloner.find_linguist(linguist)
File "/<>/tmsc/.venv/lib/python3.6/site-packages/ast2vec/cloning.py", line 167, in find_linguist
linguist)
FileNotFoundError: ./enry was not found. Install it: python3 -m ast2vec enry
Although latest Enry binary is available in the PATH
$ enry
14.29% Dockerfile
14.29% Text
71.43% Python
``
Activity
bzz commentedon Sep 20, 2017
Quick search of
./enryreveals the--linguistflag.Will re-try with
python -m tmsc --linguist enry https://github.com/apache/sparkbzz commentedon Sep 20, 2017
--linguistsolves the issue.Although it would still be nice to auto-detect
enrybinary inPATHby defaultvmarkovtsev commentedon Sep 20, 2017
Thanks for reporting, it should indeed be detected from PATH, looks like a defaults flaw in ast2vec.