Problem after upgrading to kiteconnect latest version

TUSH123
HI below is the issue I am facing and now I am stuck
from kiteconnect import KiteTicker
File "/usr/local/lib/python3.6/site-packages/kiteconnect-3.7.4-py3.6.egg/kiteconnect/__init__.py", line 111, in
File "/usr/local/lib/python3.6/site-packages/kiteconnect-3.7.4-py3.6.egg/kiteconnect/ticker.py", line 18, in
File "/usr/local/lib/python3.6/site-packages/Twisted-17.1.0-py3.6-linux-x86_64.egg/twisted/__init__.py", line 23, in
from twisted._version import __version__ as version
File "/usr/local/lib/python3.6/site-packages/Twisted-17.1.0-py3.6-linux-x86_64.egg/twisted/_version.py", line 8, in
from incremental import Version
ModuleNotFoundError: No module named 'incremental'


I already checked incremental module is installed , please check below:
[email protected] [~]# pip3.6 install incremental
Requirement already satisfied: incremental in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (17.5.0)
[email protected] [~]# pip3.6 install --upgrade incremental
Requirement already up-to-date: incremental in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (17.5.0)
[email protected] [~]# pip3.6 install --upgrade incremental
Requirement already up-to-date: incremental in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (17.5.0)
[email protected] [~]# pip3.6 install --upgrade twisted
Requirement already up-to-date: twisted in /usr/local/lib/python3.6/site-packages/Twisted-17.1.0-py3.6-linux-x86_64.egg (17.1.0)
Requirement not upgraded as not directly required: zope.interface>=4.0.2 in /usr/local/lib/python3.6/site-packages (from twisted) (4.5.0)
Requirement not upgraded as not directly required: constantly>=15.1 in /usr/local/lib/python3.6/site-packages/constantly-15.1.0-py3.6.egg (from twisted) (15.1.0)
Requirement not upgraded as not directly required: incremental>=16.10.1 in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (from twisted) (17.5.0)
Requirement not upgraded as not directly required: Automat>=0.3.0 in /usr/local/lib/python3.6/site-packages/Automat-0.6.0-py3.6.egg (from twisted) (0.6.0)
Requirement not upgraded as not directly required: setuptools in /usr/local/lib/python3.6/site-packages (from zope.interface>=4.0.2->twisted) (39.2.0)
Requirement not upgraded as not directly required: attrs in /usr/local/lib/python3.6/site-packages/attrs-17.4.0-py3.6.egg (from Automat>=0.3.0->twisted) (17.4.0)
Requirement not upgraded as not directly required: six in /usr/local/lib/python3.6/site-packages (from Automat>=0.3.0->twisted) (1.11.0)
Tagged:
  • TUSH123
    Please advice this is kind of urgent
  • zartimus
    @TUSH123 Check if the pip3.6 and python3.6 has the same path. So, open up python3.6 shell. try this
    >>import incremental
    ^works?
    then do
    >>incremental.__file__
    make sure incremental is inside /usr/local/lib/python3.6/site-packages/

    if not there is an issue with your python installation, also try using virtualenv which separates your app from the main site-packages.
  • rakeshr
    Hi @TUSH123
    Can you uninstall Incremental library seperately using pip uninstall incremental and then re-install it using pip install incremental
  • zartimus
    @TUSH123
    I m sure there is an issue with python paths
    see for eg

    Requirement already satisfied: incremental in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (17.5.0)
    ^ says incremental is installed in a relative path

    But your twisted is inside
    Requirement already up-to-date: twisted in /usr/local/lib/python3.6/site-packages/Twisted-17.1.0-py3.6-linux-x86_64.egg
  • TUSH123
    while uninstalling getting below error:

    [email protected] [~]# pip3.6 install incremental
    Requirement already satisfied: incremental in ./Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg (17.5.0)
    [email protected] [~]# pip3.6 uninstall incremental
    Cannot remove entries from nonexistent file /root/Twisted-17.1.0/.eggs/easy-install.pth
    [email protected] [~]#
  • TUSH123
    [email protected] [~]# python3.6
    Python 3.6.3 (default, Feb 4 2018, 14:18:28)
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import incremental
    >>> incremental.__file__
    '/root/Twisted-17.1.0/.eggs/incremental-17.5.0-py3.6.egg/incremental/__init__.py'
    >>>

  • TUSH123
    there is no step I can see, only step to identify issue , please provide me steps to resolve this
  • rakeshr
    You can use Virtualenv environment, as it can get all library installed in your system Python environment.Follow steps here, to know how to use Virtualenv.
This discussion has been closed.