Error Installing python SDK



  • Collecting upstox
    Using cached upstox-0.7-py2.py3-none-any.whl
    Collecting future (from upstox)
    Using cached future-0.16.0.tar.gz
    Collecting websocket-client (from upstox)
    Using cached websocket_client-0.42.1-py2.py3-none-any.whl
    Collecting pycurl (from upstox)
    Using cached pycurl-7.43.0-cp35-none-win32.whl
    Collecting enum (from upstox)
    Using cached enum-0.4.6.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\setuptools_init_.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\setuptools\extern_init_.py", line 1, in <module>
    from pkg_resources.extern import VendorImporter
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pkg_resources_init_.py", line 33, in <module>
    import platform
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\platform.py", line 117, in <module>
    import sys, os, re, subprocess
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 50, in <module>
    import signal
    File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\signal.py", line 4, in <module>
    from enum import IntEnum as _IntEnum
    ImportError: cannot import name 'IntEnum'

    ----------------------------------------

  • Global Moderator

    Hi @abbanerjee,

    I guess there some issues with enum module version.
    Can you post output of pip freeze command?



  • @yogesh said in Error Installing python SDK:

    pip freeze

    arch==4.1
    dateutils==0.6.6
    Django==1.9.4
    EasyProcess==0.2.3
    enum34==1.1.6
    et-xmlfile==1.0.1
    Jinja2==2.8
    jinja2-time==0.2.0
    MarkupSafe==0.23
    matplotlib==2.0.0b3
    pandas==0.18.1
    pandas-datareader==0.2.1
    PyMySQL==0.7.2
    pyparsing==2.1.8
    requests==2.10.0
    requests-file==1.4
    scikit-learn==0.17.1
    scipy==0.18.0
    xlrd==1.0.0



  • If I do pip-install enum I get

    Collecting enum
    Using cached enum-0.4.6.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\site-packages\setuptools_init_.py", line 11, in <module>
    from setuptools.extension import Extension
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\site-packages\setuptools\extension.py", line 8, in <module>
    from .dist import get_unpatched
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py", line 16, in <module>
    from setuptools.depends import Require
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\site-packages\setuptools\depends.py", line 6, in <module>
    from setuptools import compat
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\site-packages\setuptools\compat.py", line 45, in <module>
    import http.client as httplib
    File "c:\users\UserPad\appdata\local\programs\python\python35\lib\http_init
    .py", line 1, in <module>
    from enum import IntEnum
    ImportError: cannot import name 'IntEnum'

    ----------------------------------------

Log in to reply
 

Looks like your connection to Upstox Forum was lost, please wait while we try to reconnect.