@zartimus I am using anaconda (64 bit) python 3.6.3 on Windows for sometime and cPython has been running smoothly (since I have been using numpy, pandas etc.) so I am guessing Microsoft Visual C+ 14 compiler version shouldn't be an issue. The break happens only when we try to migrate to Kite version 3 (previous version of kite is also running smoothly).
so I am guessing Microsoft Visual C+ 14 compiler version shouldn't be an issue
Nope. Kiteconnect v3 uses twisted behind the scenes for websocket. Issue is twisted wheels are not distributed properly and that brings the microsoft visual C++ compiler into picture. So, for every os platform, python version twisted needs to be compiled. As a workaround we compiled them beforehand and the kiteconnect setup.py picks it from our wheels repository.
Correct. But it didn't upgrade the current kiteconnect 3.6.2 to kiteconnect 3.7 when i did a "pip show kiteconnect" (I am assuming that it should show version as 3.7.x post correct migration/upgradataion - correct me here).
- If it shows an error "pdfminer-six requires pycryptodome", do "pip install pycryptodom" and then the above pip install Twisted-17.9.0-cp36-cp36m-win_amd64.whl should go through successfully.
- After that do a "pip install kiteconnect --upgrade --pre" again. Now the Visual C++14 compiler error should disappear. Doing a "pip install kiteconnect --upgrade --pre" again should upgrade the current kiteconnect 3.6.2 version to 3.7.0b10
@zartimus Thanks much for the help and quick reverts.
Error clearly says `Microsoft Visual C+ 14.0` is required. Get it with `Microsoft Visual C++ Build Tools`. Check this
Please refer these threads
https://kite.trade/forum/discussion/3645/kiteconnect-installation/p1
https://kite.trade/forum/discussion/comment/13036/#Comment_13036
https://kite.trade/forum/discussion/comment/12572/#Comment_12572
I am using anaconda (64 bit) python 3.6.3 on Windows for sometime and cPython has been running smoothly (since I have been using numpy, pandas etc.) so I am guessing Microsoft Visual C+ 14 compiler version shouldn't be an issue. The break happens only when we try to migrate to Kite version 3 (previous version of kite is also running smoothly).
In any case, I downloaded "https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017" and reinstalled it. But it is giving the same error again.
I also tried downloading zip file directly (https://github.com/zerodhatech/pykiteconnect/archive/kite3.zip) and doing "python setup.py install". Attaching the logfile while doing this (pip show kiteconnect still shows version 3.6.2).
Now logfile says So the hardest part is done Which is exactly we need.
Lastly, So is it working or not? No error inside your logfile
Can you remove the existing kiteconnect from sitepackages?
pip uninstall kiteconnect
and do it all over againFollowing is what apparently solved my issue (in case useful for others):
- check if following command is going through (based on the thread mentioned above):
pip install https://raw.githubusercontent.com/zerodhatech/python-wheels/master/Twisted-17.9.0-cp36-cp36m-win_amd64.whl
- If it shows an error "pdfminer-six requires pycryptodome", do "pip install pycryptodom" and then the above pip install Twisted-17.9.0-cp36-cp36m-win_amd64.whl should go through successfully.
- After that do a "pip install kiteconnect --upgrade --pre" again. Now the Visual C++14 compiler error should disappear. Doing a "pip install kiteconnect --upgrade --pre" again should upgrade the current kiteconnect 3.6.2 version to 3.7.0b10
@zartimus Thanks much for the help and quick reverts.