title: Google Cloud Function in Python gives an error on deploying
body: <p>I am trying to configure Google Cloud Functions to place an order when the function is triggered. 
  I have mentioned <code>kiteconnect</code> in the <code>requirements.txt</code> file
  But the function doesn't get deployed. throws an error "Unknown resource type". </p>
  
  <p>FULL ERROR MESSAGE:</p>
  
  <pre><code>Deployment failure: Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-wheel-97dghcl9/logging/\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "67DBDBF3"}}
  </code></pre>
  
  <p>Does anyone have any experience dealing with cloud functions to place a trading order on zerodah?</p>
  
  <p>Following is the function that i have tried:</p>
  
  <pre class="lang-py prettyprint-override"><code>import logging
  from kiteconnect import KiteConnect
  
  logging.basicConfig(level=logging.DEBUG)
  
  kite = KiteConnect(api_key="xxxxxxxxxxxxxxxxxxxxxxxx")
  
  # Redirect the user to the login url obtained
  # from kite.login_url(), and receive the request_token
  # from the registered redirect url after the login flow.
  # Once you have the request_token, obtain the access_token
  # as follows.
  
  data = kite.generate_session("xxxxxxxxxxxxxxxxxxxxxxxxx", secret="xxxxxxxxxxxxxxxxxxxxxxxxxx")
  kite.set_access_token(data["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"])
  
  # Place an order
  def orderPlace():
      order_id = kite.place_order(
          variety=kite.VARIETY_REGULAR,
          exchange=kite.EXCHANGE_NSE,
          tradingsymbol="INFY",
          transaction_type=kite.TRANSACTION_TYPE_BUY,
          quantity=1,
          product=kite.PRODUCT_CNC,
          order_type=kite.ORDER_TYPE_MARKET
      )
  
      logging.info("Order placed. ID is: {}".format(order_id))
  except Exception as e:
      logging.info("Order placement failed: {}".format(e.message))
  </code></pre>
  
  <p>Content of requirements.txt file:</p>
  
  <pre><code># Function dependencies, for example:
  # package&gt;=version
  kiteconnect
  </code></pre>