src-d / tmsc

Other
21 stars 9 forks source link

Cannot find tmsc error on Ubuntu. #11

Open AnneshaChowdhury opened 6 years ago

AnneshaChowdhury commented 6 years ago

Hi , After that issue with Windows, I tried on Ubuntu and got it installed successfully after some initial hiccups. But now when I try to execute the follow command :

 tmsc https://github.com/apache/spark

I am getting the following error:

tmsc: command not found

Update: When I start from the terminal I am getting the following block:

import tmsc
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
>>> engine = tmsc.Topics()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'tmsc' has no attribute 'Topics'

Will appreciate any help with this!

bzz commented 6 years ago

To see if tmsc was actually installed you can try running python3 -m tmsc.

Console script tmsc should be installed in USER_BASE/bin dir that you can find by running python3 -m site

If that does not run a CLI, first thing to check would be if bblfsh dependency installs correctly (pip3 install bblfsh) which might fail due to absence of one of the native dependencies https://github.com/bblfsh/client-python#dependencies.

You would need to have a bblfshd running in order to use tmsc.

If you are using Ubuntu, may be the simplest way to use it will be by trying everything in Docker container first, following https://github.com/src-d/tmsc#docker-image ?

Let me know if this helps!