Installation Error - Windows 10

Kousik
When I try to install kiteconnect using : pip install kiteconnect --upgrade --pre , I get the following error

Failed building wheel for Twisted
Running setup.py clean for Twisted
Running setup.py bdist_wheel for soappy ... done
Stored in directory: C:\Users\CSS01\AppData\Local\pip\Cache\wheels\9a\08\56\8b5f80895d17e4b994eb152f6dedd85cd0fb5bdd8f045658e4
Successfully built soappy
Failed to build Twisted
Installing collected packages: pypiwin32, service-identity, appdirs, wstools, defusedxml, soappy, pyserial, hyperframe, hpack, h2, priority, Twisted
Exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\win32\\win32api.pyd'

Note : I am running the command prompt in Administrator mode.
  • Kousik
    After properly installing Twisted, I am getting the following error:

    Collecting certifi>=2017.4.17 (from requests->kiteconnect)
    Using cached certifi-2018.1.18-py2.py3-none-any.whl
    Requirement already up-to-date: attrs in c:\programdata\anaconda3\lib\site-packages (from service-identity->kiteconnect)
    Requirement already up-to-date: pyasn1 in c:\programdata\anaconda3\lib\site-packages (from service-identity->kiteconnect)
    Requirement already up-to-date: pyasn1-modules in c:\programdata\anaconda3\lib\site-packages (from service-identity->kiteconnect)
    Requirement already up-to-date: asn1crypto>=0.21.0 in c:\programdata\anaconda3\lib\site-packages (from cryptography>=2.1.4->pyOpenSSL->kiteconnect)
    Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography>=2.1.4->pyOpenSSL->kiteconnect)
    Using cached cffi-1.11.4-cp36-cp36m-win_amd64.whl
    Requirement already up-to-date: setuptools in c:\programdata\anaconda3\lib\site-packages (from zope.interface>=4.0.2->Twisted->kiteconnect)
    Requirement already up-to-date: pycparser in c:\programdata\anaconda3\lib\site-packages (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=2.1.4->pyOpenSSL->kiteconnect)
    Installing collected packages: cffi, cryptography, pyOpenSSL, service-identity, kiteconnect, certifi
    Exception:
    Traceback (most recent call last):
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
    File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 323, in clobber
    shutil.copyfile(srcfile, destfile)
    File "C:\ProgramData\Anaconda3\lib\shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
    PermissionError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\_cffi_backend.cp36-win_amd64.pyd'
  • SuperMan
    Even i am stucked here. Did u get pass it?
  • SuperMan
    My installation error logs:

    (C:\ProgramData\Anaconda2) C:\Users\Dinesh>pip install kiteconnect --upgrade --p
    re
    Collecting kiteconnect
    Collecting Twisted (from kiteconnect)
    Using cached Twisted-17.9.0-cp27-cp27m-win_amd64.whl
    Collecting autobahn (from kiteconnect)
    Using cached autobahn-17.10.1-py2.py3-none-any.whl
    Requirement already up-to-date: six in c:\programdata\anaconda2\lib\site-package
    s (from kiteconnect)
    Requirement already up-to-date: python-dateutil in c:\programdata\anaconda2\lib\
    site-packages (from kiteconnect)
    Requirement already up-to-date: enum34 in c:\programdata\anaconda2\lib\site-pack
    ages (from kiteconnect)
    Collecting service-identity (from kiteconnect)
    Using cached service_identity-17.0.0-py2.py3-none-any.whl
    Requirement already up-to-date: requests in c:\programdata\anaconda2\lib\site-pa
    ckages (from kiteconnect)
    Collecting pyOpenSSL (from kiteconnect)
    Using cached pyOpenSSL-17.5.0-py2.py3-none-any.whl
    Collecting Automat>=0.3.0 (from Twisted->kiteconnect)
    Using cached Automat-0.6.0-py2.py3-none-any.whl
    Collecting constantly>=15.1 (from Twisted->kiteconnect)
    Using cached constantly-15.1.0-py2.py3-none-any.whl
    Collecting zope.interface>=3.6.0 (from Twisted->kiteconnect)
    Using cached zope.interface-4.4.3-cp27-cp27m-win_amd64.whl
    Collecting hyperlink>=17.1.1 (from Twisted->kiteconnect)
    Using cached hyperlink-17.3.1-py2.py3-none-any.whl
    Collecting incremental>=16.10.1 (from Twisted->kiteconnect)
    Using cached incremental-17.5.0-py2.py3-none-any.whl
    Collecting txaio>=2.7.0 (from autobahn->kiteconnect)
    Using cached txaio-2.8.2-py2.py3-none-any.whl
    Collecting pyasn1 (from service-identity->kiteconnect)
    Using cached pyasn1-0.4.2-py2.py3-none-any.whl
    Collecting attrs (from service-identity->kiteconnect)
    Using cached attrs-17.4.0-py2.py3-none-any.whl
    Collecting pyasn1-modules (from service-identity->kiteconnect)
    Using cached pyasn1_modules-0.2.1-py2.py3-none-any.whl
    Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in c:\programdata\anaconda
    2\lib\site-packages (from requests->kiteconnect)
    Requirement already up-to-date: idna<2.7,>=2.5 in c:\programdata\anaconda2\lib\s
    ite-packages (from requests->kiteconnect)
    Requirement already up-to-date: urllib3<1.23,>=1.21.1 in c:\programdata\anaconda
    2\lib\site-packages (from requests->kiteconnect)
    Collecting certifi>=2017.4.17 (from requests->kiteconnect)
    Using cached certifi-2018.1.18-py2.py3-none-any.whl
    Collecting cryptography>=2.1.4 (from pyOpenSSL->kiteconnect)
    Using cached cryptography-2.1.4-cp27-cp27m-win_amd64.whl
    Collecting setuptools (from zope.interface>=3.6.0->Twisted->kiteconnect)
    Using cached setuptools-38.5.1-py2.py3-none-any.whl
    Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptograph
    y>=2.1.4->pyOpenSSL->kiteconnect)
    Using cached cffi-1.11.4-cp27-cp27m-win_amd64.whl
    Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.4->pyOpenSSL->kiteconnect)

    Using cached asn1crypto-0.24.0-py2.py3-none-any.whl
    Collecting ipaddress; python_version < "3" (from cryptography>=2.1.4->pyOpenSSL-
    >kiteconnect)
    Requirement already up-to-date: pycparser in c:\programdata\anaconda2\lib\site-p
    ackages (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>
    =2.1.4->pyOpenSSL->kiteconnect)
    Installing collected packages: attrs, Automat, constantly, setuptools, zope.inte
    rface, hyperlink, incremental, Twisted, txaio, autobahn, pyasn1, cffi, asn1crypt
    o, ipaddress, cryptography, pyOpenSSL, pyasn1-modules, service-identity, kitecon
    nect, certifi
    Found existing installation: setuptools 36.5.0.post20170921
    Uninstalling setuptools-36.5.0.post20170921:
    Successfully uninstalled setuptools-36.5.0.post20170921
    Found existing installation: cffi 1.10.0
    Uninstalling cffi-1.10.0:
    Successfully uninstalled cffi-1.10.0
    Rolling back uninstall of cffi
    Exception:
    Traceback (most recent call last):
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\basecommand.py", line 215
    , in main
    status = self.run(options, args)
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\commands\install.py", lin
    e 342, in run
    prefix=options.prefix_path,
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_set.py", line 784
    , in install
    **kwargs
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_install.py", line
    851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_install.py", line
    1064, in move_wheel_files
    isolated=self.isolated,
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\wheel.py", line 345, in m
    ove_wheel_files
    clobber(source, lib_dir, True)
    File "C:\ProgramData\Anaconda2\lib\site-packages\pip\wheel.py", line 323, in c
    lobber
    shutil.copyfile(srcfile, destfile)
    File "C:\ProgramData\Anaconda2\lib\shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
    IOError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda2\\Lib\\site-pa
    ckages\\_cffi_backend.pyd'
  • Kousik
    @SuperMan Nope. I did not get past it.
Sign In or Register to comment.