src-d / tmsc

Other
21 stars 9 forks source link

Issue with installation: bblfish #10

Closed AnneshaChowdhury closed 6 years ago

AnneshaChowdhury commented 6 years ago

Hi, I am having a hard time with the installation of tmsc. I have been trying to get tmsc up but have been running into some problems. I am installing inside 'venv' on Windows 10.

This is the snippet of the error I have been getting.

    pyuast.cc
    bblfsh/pyuast.cc(481): error C2059: syntax error: '.'
    bblfsh/pyuast.cc(502): error C2143: syntax error: missing ';' before '}'
    bblfsh/pyuast.cc(504): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    bblfsh/pyuast.cc(504): error C2040: 'ctx': 'int' differs in levels of indirection from 'Uast *'
    bblfsh/pyuast.cc(504): error C2065: 'iface': undeclared identifier
    bblfsh/pyuast.cc(505): error C2059: syntax error: 'return'
    bblfsh/pyuast.cc(506): error C2059: syntax error: '}'
    bblfsh/pyuast.cc(506): error C2143: syntax error: missing ';' before '}'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\progra~1\python36\venv~1\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Annesha\\AppData\\Local\\Temp\\pip-install-ur9kqskb\\bblfsh\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Annesha\AppData\Local\Temp\pip-record-jp280ri4\install-record.txt --single-version-externally-managed --compile --install-headers c:\progra~1\python36\venv~1\include\site\python3.6\bblfsh" failed with error code 1 in C:\Users\Annesha\AppData\Local\Temp\pip-install-ur9kqskb\bblfsh\c\ 

Any help is appreciated!

vmarkovtsev commented 6 years ago

Hi @AnneshaChowdhury !

Thanks for reporting. Indeed, Windows is our punishment for our software development sins.

This is clearly a problem with installing the Babelfish python client. Can you please file the very same report to https://github.com/bblfsh/client-python (about problems with pip3 install bblfsh)?

I am closing the original issue as unrelated.

smola commented 6 years ago

@AnneshaChowdhury I've just opened the issue for you: https://github.com/bblfsh/client-python/issues/114

AnneshaChowdhury commented 6 years ago

@vmarkovtsev Thanks for your response, Yeah , I have tried for few hours on my Windows machine but no luck. @smola Appreciate your help.

AnneshaChowdhury commented 6 years ago

@vmarkovtsev - I have a question, will tmsc work on private source-code repositories? And if it does, how do we configure that?

vmarkovtsev commented 6 years ago

It takes any Git URL or file system path. If the ssh remote does not work for you then the second option will definitely work.