Unable to install kiteconnect on Virtual machine with windows server 2012R2

RP3436
I am a regular user on my local machine and have been using kiteconnect apis without any difficulty. However when I tried to install the same on the subject VM , I am getting the following message -
QUOTE:
(base) C:\anaconda>pip install --upgrade kiteconnect
Collecting kiteconnect
Using cached https://files.pythonhosted.org/packages/e9/74/5354c5845ae4108329b
19d08089113fd5dde8ce63c9639907f622086aef6/kiteconnect-3.7.4.tar.gz
Requirement already satisfied, skipping upgrade: requests>=2.18.4 in c:\anaconda
\lib\site-packages (from kiteconnect) (2.19.1)
Requirement already satisfied, skipping upgrade: six>=1.11.0 in c:\anaconda\lib\
site-packages (from kiteconnect) (1.11.0)
Requirement already satisfied, skipping upgrade: pyOpenSSL>=17.5.0 in c:\anacond
a\lib\site-packages (from kiteconnect) (18.0.0)
Collecting enum34>=1.1.6 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e7
2a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl
Requirement already satisfied, skipping upgrade: python-dateutil>=2.6.1 in c:\an
aconda\lib\site-packages (from kiteconnect) (2.7.3)
Collecting autobahn[twisted]>=17.10.1 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/48/e6/2bab8d8ec8ed58e0c78
46ad855379d22371a0e892fd1dcc20229b9016588/autobahn-18.10.1-py2.py3-none-any.whl
Collecting pypiwin32<=220 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f7022278
7b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip
Complete output from command python setup.py egg_info:
c:\anaconda\lib\site-packages\setuptools\version.py:1: UserWarning: Module _
win32sysloader was already imported from c:\anaconda\lib\site-packages\win32\_wi
n32sysloader.pyd, but c:\users\admini~1\appdata\local\temp\2\pip-install-m75sdh5
u\pypiwin32 is being added to sys.path
import pkg_resources
c:\anaconda\lib\site-packages\setuptools\version.py:1: UserWarning: Module p
ythoncom was already imported from C:\anaconda\Library\bin\pythoncom37.dll, but
c:\users\admini~1\appdata\local\temp\2\pip-install-m75sdh5u\pypiwin32 is being a
dded to sys.path
import pkg_resources
c:\anaconda\lib\site-packages\setuptools\version.py:1: UserWarning: Module p
ywintypes was already imported from c:\anaconda\lib\site-packages\win32\pywintyp
es37.dll, but c:\users\admini~1\appdata\local\temp\2\pip-install-m75sdh5u\pypiwi
n32 is being added to sys.path
import pkg_resources
c:\anaconda\lib\site-packages\setuptools\version.py:1: UserWarning: Module w
in32api was already imported from c:\anaconda\lib\site-packages\win32\win32api.p
yd, but c:\users\admini~1\appdata\local\temp\2\pip-install-m75sdh5u\pypiwin32 is
being added to sys.path
import pkg_resources
c:\anaconda\lib\site-packages\setuptools\version.py:1: UserWarning: Module w
in32com was already imported from c:\anaconda\lib\site-packages\win32com\__init_
_.py, but c:\users\admini~1\appdata\local\temp\2\pip-install-m75sdh5u\pypiwin32
is being added to sys.path
import pkg_resources
Traceback (most recent call last):
File "<string>", line 1, in
File "C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-m75sdh5u\pypiwin3
2\setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Bui
lding pywin32", pywin32_version)?

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1
\AppData\Local\Temp\2\pip-install-m75sdh5u\pypiwin32\

UNQUOTE

I have python 3.7 installed from Anaconda for windows 64 bit arch.
I have installed microsoft VC 15 buildtools.
I have run setup tools upgrade as well.

Any help/guidance shall be appreciated.
  • RP3436
    Request , if someone from kiteconnect team can suggest the possible areas I must look into. Or if any additional information is required from my end.
  • zartimus
    @RP3436 Oops. I'd already added 3.7 twisted wheels for windows. Let me do a release on https://github.com/zerodhatech/pykiteconnect. It should work after that.
  • RP3436
    When can I retry , sometime today A/N?
  • zartimus
    For now, do this

    `curl https://github.com/zerodhatech/python-wheels/raw/master/Twisted-18.7.0-cp37-cp37m-win_amd64.whl`
    `pip install /path/to/where/downloaded --no-cache`
    `pip install kiteconnect --upgrade`
  • RP3436
    @zartimus
    A]
    I am not too familiar with curl commands and with remote desktop systems. So , quite hesitantly - i request , if you could elaborate the first two statements with a sample example. I tried this -

    (base) C:\Users\Administrator>pip install https://github.com/zerodhatech/python-
    wheels/raw/master/Twisted-18.7.0-cp37-cp37m-win_amd64.whl

    and got the following output -
    Requirement already satisfied: Twisted==18.7.0 from https://github.com/zerodhate
    ch/python-wheels/raw/master/Twisted-18.7.0-cp37-cp37m-win_amd64.whl in c:\anacon
    da\lib\site-packages (18.7.0)
    Requirement already satisfied: zope.interface>=4.4.2 in c:\anaconda\lib\site-pac
    kages (from Twisted==18.7.0) (4.5.0)
    Requirement already satisfied: constantly>=15.1 in c:\anaconda\lib\site-packages
    (from Twisted==18.7.0) (15.1.0)
    Requirement already satisfied: incremental>=16.10.1 in c:\anaconda\lib\site-pack
    ages (from Twisted==18.7.0) (17.5.0)
    Requirement already satisfied: Automat>=0.3.0 in c:\anaconda\lib\site-packages (
    from Twisted==18.7.0) (0.7.0)
    Requirement already satisfied: hyperlink>=17.1.1 in c:\anaconda\lib\site-package
    s (from Twisted==18.7.0) (18.0.0)
    Collecting PyHamcrest>=1.9.0 (from Twisted==18.7.0)
    Downloading https://files.pythonhosted.org/packages/9a/d5/d37fd731b7d0e91afcc8
    4577edeccf4638b4f9b82f5ffe2f8b62e2ddc609/PyHamcrest-1.9.0-py2.py3-none-any.whl (
    52kB)
    100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 61kB ...
    Requirement already satisfied: attrs>=17.4.0 in c:\anaconda\lib\site-packages (f
    rom Twisted==18.7.0) (18.2.0)
    Requirement already satisfied: setuptools in c:\anaconda\lib\site-packages (from
    zope.interface>=4.4.2->Twisted==18.7.0) (40.5.0)
    Requirement already satisfied: six in c:\anaconda\lib\site-packages (from Automa
    t>=0.3.0->Twisted==18.7.0) (1.11.0)
    Requirement already satisfied: idna>=2.5 in c:\anaconda\lib\site-packages (from
    hyperlink>=17.1.1->Twisted==18.7.0) (2.7)
    Installing collected packages: PyHamcrest
    Successfully installed PyHamcrest-1.9.0

    Then I tried `pip install kiteconnect --upgrade`, but of no help . It gave the same error as posted earlier:

    Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1
    \AppData\Local\Temp\2\pip-install-vbe7x183\pypiwin32\

    I am sure I am doing something incorrectly as I could not understand your first 2 statements.

    B] I am in somewhat urgency , so if installing python 3.6 (instead of 3.7) helps , please advise so. I have no issues.
    Thanks and Regards
  • RP3436
    I have finally managed to install kiteconnect by downgrading python 3.7 to 3.6. In the meantime I applied your instructions (after learning curl) and it did not work! Once you resolve the issue with 3.7 , I would like to switch back to the latest version.
  • naz
    @zartimus : after installing the .whl file also, it is giving the same error. Can you please see if this is working for you. Below is my system set-up.
    conda version : 4.5.11
    conda-build version : 3.15.1
    python version : 3.7.0.final.0
    platform : win-64
    user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Windows/10 Windows/10.0.17134
Sign In or Register to comment.