Comments (5)
Hello Zerodha Team,
Please help.
Thanks
from pykiteconnect.
We have tested in Linux and it seems working. This could be windows related issue. Can you run pip freeze
and paste the logs here? Also how are you importing it, I guess its from kiteconnect import KiteConnect
?
from pykiteconnect.
This seems to be happening with the latest versions of pip.
From pip's message it seems that zerodha team will need to do a change in their setup.py :
Below is the error/warning message that comes on
pip install kiteconnect
Running setup.py install for kiteconnect ... done
DEPRECATION: kiteconnect from https://files.pythonhosted.org/packages/b9/0b/ab3c02f062e7c36d2e530c7bab47f47978431ee35a4ef1d5a8597528f648/kiteconnect-3.8.1.tar.gz#sha256=bc667aff2a2ffca23d1fdaf1375b765d823834aea7561369f1b6831669230000 did not indicate that it installed an .egg-info directory. Only setup.py projects generating .egg-info directories are supported. pip 20.2 will remove support for this functionality. A possible replacement is for maintainers: updating the setup.py of kiteconnect. For users: contact the maintainers of kiteconnect to let them know to update their setup.py.. You can find discussion regarding this at https://github.com/pypa/pip/issues/6998.
The above error that pip is giving has a link to an issue that is already logged in the context of kiteconnect. (pypa/pip#6998)
Corresponding kiteconnect forum page: https://kite.trade/forum/discussion/4335/could-not-find-egg-info-directory-in-install-record-for-kiteconnect
But not sure why the support thread has been closed, telling the user:
Successfully installed kiteconnect` means kiteconnect is installed. Could not find .egg directory is a warning that you ignore. Please do not create unnecessary threads unless it is a valid query.
This is not correct. The package installation is, in fact failing.
from pykiteconnect.
@tushar2708 Package installation is showing a deprecation warning. I m checking into it now.
Installation
(testenv) ➜ test pip install kiteconnect
Collecting kiteconnect
Using cached kiteconnect-3.8.1.tar.gz (24 kB)
Requirement already satisfied: requests>=2.18.4 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (2.22.0)
Requirement already satisfied: six>=1.11.0 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (1.14.0)
Requirement already satisfied: pyOpenSSL>=17.5.0 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (19.1.0)
Requirement already satisfied: enum34>=1.1.6 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (1.1.6)
Requirement already satisfied: python-dateutil>=2.6.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (2.8.1)
Requirement already satisfied: autobahn[twisted]>=17.10.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from kiteconnect) (20.1.3)
Requirement already satisfied: idna<2.9,>=2.5 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from requests>=2.18.4->kiteconnect) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from requests>=2.18.4->kiteconnect) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from requests>=2.18.4->kiteconnect) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from requests>=2.18.4->kiteconnect) (1.25.8)
Requirement already satisfied: cryptography>=2.8 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from pyOpenSSL>=17.5.0->kiteconnect) (2.8)
Requirement already satisfied: txaio>=20.1.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from autobahn[twisted]>=17.10.1->kiteconnect) (20.1.1)
Requirement already satisfied: twisted>=15.4.0; extra == "twisted" in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from autobahn[twisted]>=17.10.1->kiteconnect) (19.10.0)
Requirement already satisfied: zope.interface>=3.6.0; extra == "twisted" in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from autobahn[twisted]>=17.10.1->kiteconnect) (4.7.1)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from cryptography>=2.8->pyOpenSSL>=17.5.0->kiteconnect) (1.13.2)
Requirement already satisfied: Automat>=0.3.0 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (0.8.0)
Requirement already satisfied: PyHamcrest>=1.9.0 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (2.0.0)
Requirement already satisfied: attrs>=17.4.0 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (19.3.0)
Requirement already satisfied: hyperlink>=17.1.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (19.0.0)
Requirement already satisfied: incremental>=16.10.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (17.5.0)
Requirement already satisfied: constantly>=15.1 in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from twisted>=15.4.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (15.1.0)
Requirement already satisfied: setuptools in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from zope.interface>=3.6.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect) (45.1.0)
Requirement already satisfied: pycparser in /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.8->pyOpenSSL>=17.5.0->kiteconnect) (2.19)
Building wheels for collected packages: kiteconnect
Building wheel for kiteconnect (setup.py) ... done
WARNING: Legacy build of wheel for 'kiteconnect' created no files.
Command arguments: /home/testuser/.virtualenvs/testenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6x5yz0mj/kiteconnect/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6x5yz0mj/kiteconnect/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().repla
ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nikobdjf
Command output: [use --verbose to show]
Running setup.py clean for kiteconnect
Failed to build kiteconnect
Installing collected packages: kiteconnect
Running setup.py install for kiteconnect ... done
DEPRECATION: kiteconnect from https://files.pythonhosted.org/packages/b9/0b/ab3c02f062e7c36d2e530c7bab47f47978431ee35a4ef1d5a8597528f648/kiteconnect-3.8.1.tar.gz#sha256=bc667aff2a2ffca23d1fdaf1375b765d823834aea7561369f1b6831669230000 did not indicate that it installed an .egg-info directory. Only setup.py projects
generating .egg-info directories are supported. pip 20.2 will remove support for this functionality. A possible replacement is for maintainers: updating the setup.py of kiteconnect. For users: contact the maintainers of kiteconnect to let them know to update their setup.py.. You can find discussion regarding this at
https://github.com/pypa/pip/issues/6998.
Successfully installed kiteconnect
Version
(testenv) ➜ test pip show kiteconnect
Name: kiteconnect
Version: 3.8.1
Summary: The official Python client for the Kite Connect trading API
Home-page: https://kite.trade
Author: Zerodha Technology Pvt ltd. (India)
Author-email: [email protected]
License: MIT
Location: /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages/kiteconnect-3.8.1-py3.8.egg
Requires: requests, six, pyOpenSSL, enum34, python-dateutil, autobahn
Required-by:
Egg directory
(testenv) ➜ test unzip -l /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages/kiteconnect-3.8.1-py3.8.egg
Archive: /home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages/kiteconnect-3.8.1-py3.8.egg
Length Date Time Name
--------- ---------- ----- ----
8201 2020-02-07 15:20 EGG-INFO/PKG-INFO
324 2020-02-07 15:20 EGG-INFO/SOURCES.txt
1 2020-02-07 15:20 EGG-INFO/dependency_links.txt
157 2020-02-07 15:20 EGG-INFO/requires.txt
12 2020-02-07 15:20 EGG-INFO/top_level.txt
1 2020-02-07 15:20 EGG-INFO/zip-safe
3842 2020-01-06 13:13 kiteconnect/__init__.py
335 2020-01-06 13:13 kiteconnect/__version__.py
33363 2020-01-06 13:13 kiteconnect/connect.py
2574 2020-01-06 13:13 kiteconnect/exceptions.py
31968 2020-01-06 13:13 kiteconnect/ticker.py
4006 2020-02-07 15:20 kiteconnect/__pycache__/__init__.cpython-38.pyc
508 2020-02-07 15:20 kiteconnect/__pycache__/__version__.cpython-38.pyc
26314 2020-02-07 15:20 kiteconnect/__pycache__/connect.cpython-38.pyc
3687 2020-02-07 15:20 kiteconnect/__pycache__/exceptions.cpython-38.pyc
25049 2020-02-07 15:20 kiteconnect/__pycache__/ticker.cpython-38.pyc
--------- -------
140342 16 file
Sys path has correct path to egg to imports to work fine
(testenv) ➜ test ipython
/home/testuser/.local/lib/python3.8/site-packages/IPython/core/interactiveshell.py:925: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
warn("Attempting to work in a virtualenv. If you encounter problems, please "
Python 3.8.1 (default, Jan 22 2020, 06:38:00)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import sys
In [2]: sys.path
Out[2]:
['/home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages',
'/home/testuser/.local/bin',
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/python3.8/lib-dynload',
'',
'/home/testuser/.local/lib/python3.8/site-packages',
'/usr/lib/python3.8/site-packages',
'/home/testuser/.local/lib/python3.8/site-packages/IPython/extensions',
'/home/testuser/.ipython',
'/home/testuser/.virtualenvs/testenv/lib/python3.8/site-packages/kiteconnect-3.8.1-py3.8.egg']
We will fix the warning before pip moves to minor version.
from pykiteconnect.
Fixed in https://pypi.org/project/kiteconnect/ v3.8.2
from pykiteconnect.
Related Issues (20)
- option chain volume for live data HOT 4
- unable to procced with buy or sell banknifty HOT 1
- minor documentation sync up issues
- Kiteconnect
- basket_order_margins giving wrong initial margin HOT 2
- Kiteconnect: Too many requests HOT 2
- While placing basket Order margin request,Input exception error was shown HOT 3
- example for option trading code? HOT 1
- Not able to place order or get order info
- ws.connect() failure HOT 1
- Logging for better tractability HOT 1
- Circuit Limits in Websocket Calls HOT 2
- -
- Refactor the code as per python3 standards
- WebSocket Sample Code Issue HOT 2
- Wrong OI Data from Websocket
- Refactor instrument type in the scrip master
- Add thread name argument to KiteTicker.connect() HOT 1
- Issue Websocket and kite.ltp in API HOT 1
- kite.ltp and kite.quate not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pykiteconnect.