installing Python client in google app engine

jvshk78trade
has anybody tried installing Python client in google app engine? its giving problems.
  • tonystark
    Hi @jvshk78trade,

    Can you elaborate? What exactly is the problem while using it in app engine? Are you getting any errors?
  • jvshk78trade
    jvshk78trade edited September 2017
    Hi @ajinasokan,
    i downloaded and did "pip install pykiteconnect-master.zip", then this is the o/p in screen :


    Processing ./pykiteconnect-master.zip
    Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from kiteconnect==3.6.0)
    Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from kiteconnect==3.6.0)
    Collecting websocket-client (from kiteconnect==3.6.0)
    Using cached websocket_client-0.44.0-py2.py3-none-any.whl
    Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->kiteconnect==3.6.0)
    Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->kiteconnect==3.6.0)
    Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->kiteconnect==3.6.0)
    Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->kiteconnect==3.6.0)
    Building wheels for collected packages: kiteconnect
    Running setup.py bdist_wheel for kiteconnect ... done
    Stored in directory: /home/jvshk78trade/.cache/pip/wheels/60/e6/d4/cdae600c56f3ab639c1825441fa089c8bd5f35596ec4500f13
    Successfully built kiteconnect
    Installing collected packages: websocket-client, kiteconnect
    Exception:
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
    **kwargs
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
    File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
    OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/websocket_client-0.44.0.dist-info'

  • tonystark
    @jvshk78trade,

    This is due to permission issue. Try running sudo pip install kiteconnect
  • jvshk78trade
    Hi @ajinasokan,
    it installed , thanks a lot.
    will test my code now.
This discussion has been closed.