Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Error on Windows installation #114

Closed

Description

@smola

Original report by @AnneshaChowdhury: src-d/tmsc#10

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!

Activity

  1. juanjux commented on Aug 3, 2018

    @juanjux
    Contributor

    Sounds like a problem compiling with Visual Studio, the code at these lines is correct C++11/14, I'll check with a VM or my gaming computer.

  2. AnneshaChowdhury commented on Aug 3, 2018

    @AnneshaChowdhury

    @juanjux - yeah, that seems to be the problem. I followed all the steps on my Windows machine with the python venv, but no luck so far. Would appreciate it if you can help me with the issue!

  3. juanjux commented on Aug 7, 2018

    @juanjux
    Contributor

    Version 2.10.1 should fix this. Note that you still need to install libxml2 and libuast in Windows before pip will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions