Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Error installing setup.py "error: Unable to find vcvarsall.bat"

Help
EA61
2013-05-09
2013-05-10
  • EA61
    EA61
    2013-05-09

    I currently have pyclips in this directory:

    C:\Python27\pyclips

    I try running setup.py, but it produces the following error:

    C:\Python27\pyclips>setup.py install
    Module 'clips': Python to CLIPS interface
    Setup revision: $Id: setup.py 342 2008-02-22 01:17:23Z Franz $
    finding low-level module symbols... Done!
    building environment-aware submodule... Done!
    Found CLIPS version: 6.24
    Creating version number: Standard setup in progress:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\clips
    copying clips_clips_wrap.py -> build\lib.win-amd64-2.7\clips
    copying clips_eclips_wrap.py -> build\lib.win-amd64-2.7\clips
    copying clips_license.py -> build\lib.win-amd64-2.7\clips
    copying clips_version.py -> build\lib.win-amd64-2.7\clips
    copying clips__init__.py -> build\lib.win-amd64-2.7\clips
    running build_ext
    building 'clips._clips' extension
    error: Unable to find vcvarsall.bat

    I saw the compiler fix someone posted, but it didn't work either:

    C:\Python27\pyclips>python setup.py install build --compiler=mingw32
    Module 'clips': Python to CLIPS interface
    Setup revision: $Id: setup.py 342 2008-02-22 01:17:23Z Franz $
    finding low-level module symbols... Done!
    building environment-aware submodule... Done!
    Found CLIPS version: 6.24
    Creating version number: Standard setup in progress:
    running install
    running build
    running build_py
    copying clips_eclips_wrap.py -> build\lib.win-amd64-2.7\clips
    copying clips_version.py -> build\lib.win-amd64-2.7\clips
    running build_ext
    building 'clips._clips' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\clipssrc
    gcc -mno-cygwin -mdll -O -Wall -I.\clipssrc -IC:\Python27\include -IC:\Python27\ PC -c clipsmodule.c -o build\temp.win-amd64-2.7\Release\clipsmodule.o -DPYCLIPS
    -DCLIPS_MAJOR=6 -DCLIPS_MINOR=24 -DPYCLIPS_MAJOR=1 -DPYCLIPS_MINOR=0 -DPYCLIPS_P
    ATCHLEVEL=7 -DPYCLIPS_INCREMENTAL=348 -fno-strict-aliasing
    error: command 'gcc' failed: No such file or directory

     
  • Hi,

    looks like the build system does not find in the first case a component of Microsoft Visual C++, and in the second case the gcc.exe compiler provided by the MinGW package (which only works on 32 bit Python installations, for what I know).

    Could you please post your Microsoft Visual C++ settings and verify that the compiler and its tools are in the %PATH% variable? The Visual C++ compiler you install has mandatorily to be the same that has been used to build the Python version that you installed, usually reported on the Python site.

    Probably, if you post the version of the Microsoft compiler (I think the executable is still "CL.exe", but I don't know for sure), it might be useful to help.

    Cheers,

    F.

     
    • EA61
      EA61
      2013-05-10

      I'm on 64 bit python:

      C:\Python27\pyclips>python
      Python 2.7.3 (default, Apr 10 2012, 20:24:47) [MSC v.1500 64 bit (AMD64)] on win 32

      Is there a compiled 64-bit version of PyCLIPS that works on Windows 7? I will start another thread for this.