Elastalert on windows

hi

i've installed all the needed python files etc but when i do a pip install elastalert i get this, I suspect this is because the python environment can not "see" the visual c ++ installation ?

how do i fix this

(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools>pip install elastalert
Collecting elastalert
Collecting blist>=1.3.6 (from elastalert)
Using cached blist-1.3.6.tar.gz
Collecting python-dateutil>=2.6.0 (from elastalert)
Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Collecting croniter>=0.3.16 (from elastalert)
Collecting boto3>=1.4.4 (from elastalert)
Using cached boto3-1.5.7-py2.py3-none-any.whl
Collecting simplejson>=3.10.0 (from elastalert)
Using cached simplejson-3.13.2-cp27-cp27m-win_amd64.whl
Collecting mock>=2.0.0 (from elastalert)
Using cached mock-2.0.0-py2.py3-none-any.whl
Collecting enum34; python_version < "3" (from cryptography>=1.3.4->twilio<6.1,>=6.0.0->elastalert)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=1.3.4->twilio<6.1,>=6.0.0->elastalert)
Using cached asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography>=1.3.4->twilio<6.1,>=6.0.0->elastalert)
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=1.3.4->twilio<6.1,>=6.0.0->elastalert)
Building wheels for collected packages: blist
Running setup.py bdist_wheel for blist ... error
Complete output from command C:\Users\XXXX\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize;file='c:\users\XXXXXX\appdata\local\temp\2\pip-build-52i90\blist\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d c:\users\ssi~1.adm\appdata\local\temp\2\tmpqng6vgpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\blist
copying blist_btuple.py -> build\lib.win-amd64-2.7\blist
copying blist_sorteddict.py -> build\lib.win-amd64-2.7\blist
copying blist_sortedlist.py -> build\lib.win-amd64-2.7\blist
copying blist_init
.py -> build\lib.win-amd64-2.7\blist
running build_ext
building 'blist._blist' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27


Failed building wheel for blist
Running setup.py clean for blist
Failed to build blist
Installing collected packages: blist, six, python-dateutil, croniter, futures, docutils, jmespath, botocore, s3transfer, boto3, simplejson, funcsigs, pbr, mock, functools32, jsonschema, oauthlib, requests-oauthlib, argparse, ordereddict, requests-toolbelt, defusedxml, jira, elasticsearch, exotel, PyYAML, docopt, stomp.py, envparse, configparser, texttable, pytz, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, PyJWT, twilio, PyStaticConfiguration, elastalert
Running setup.py install for blist ... error
Complete output from command C:\Users\XXX\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize;file='c:\users\XXXX\appdata\local\temp\2\pip-build-52i90\blist\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\ssi~1.adm\appdata\local\temp\2\pip-xbubnj-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\blist
copying blist_btuple.py -> build\lib.win-amd64-2.7\blist
copying blist_sorteddict.py -> build\lib.win-amd64-2.7\blist
copying blist_sortedlist.py -> build\lib.win-amd64-2.7\blist
copying blist_init
.py -> build\lib.win-amd64-2.7\blist
running build_ext
building 'blist._blist' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

----------------------------------------

Command "C:\Users\xxxx\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize;file='c:\users\xxxx\appdata\local\temp\2\pip-build-_52i90\blist\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\xxxxxx\appdata\local\temp\2\pip-xbubnj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\xxxxx\appdata\local\temp\2\pip-build-_52i90\blist\

(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools>
(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools>

Hey there, this forum is for discussion around Elastic Stack components only, so you might not get much answer here for Elastalert. I suggest that you try a more general discussion forum like StackOverflow or maybe contact the authors directly.

hi thanks i solved it, it was the install of visual c ++ for python2.7 you have to install it via command line for it to work i just dobbel clicked the msi package -go ahead and close the issue.

by the way i really appriciate all the work you and your collegues do in this forum keep up the good work if anyone of you are every in aarhus, DK drop me a line i'll buy the beer. happy new year!

3 Likes

Hey @ssi, thank you for the kind words and the beer! I also say the same if you ever come to Rio :wink:

Happy New Year!!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.