WARNING: Legacy build of wheel for 'kiteconnect' created no files.

s2k
s2k edited May 2020 in Python client
hi i am trying to install kiteconnect package and
WARNING: Legacy build of wheel for 'kiteconnect' created no files.
Command arguments: 'c:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\M79CD~1.SRA\\AppData\\Local\\Temp\\pip-install-ewg60qrz\\kiteconnect\\setup.py'"'"'; __file__='"'"'C:\\Users\\M79CD~1.SRA\\AppData\\Local\\Temp\\pip-install-ewg60qrz\\kiteconnect\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\M79CD~1.SRA\AppData\Local\Temp\pip-wheel-rcy814qc'
Command output: [use --verbose to show]
this error came.
and
i think this causing below problem

NameError: name 'kiteconnect' is not defined
when importing from kiteconnect import KiteConnect

please can anyone help me with this
  • sujith
    This is just a warning, it won't cause the script to stop.
    Maybe you don't have kiteconnect in the default path you are using.
    You need to check the python path and the installed kiteconnect path.
  • sudhirtambe
    I am receiving the same error. I have included kiteconnect==3.8.2 in requirements.txt
    It doesn't get downloaded automatically (error pasted below).
    I have to pip install it separately, then it works (so this is manual activity post every restart).
    It is an issue.
    Searching for the error points out that the it might be a packaging issue.
    Again,
    a. Including it in requirements.txt, does not work
    b. If I run it separately using pip, it works.

    Building wheels for collected packages: pyodbc, kiteconnect
    Building wheel for pyodbc (setup.py) ... error
    ERROR: Command errored out with exit status 1:
    command: /opt/python/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-he3_8n02/pyodbc/setup.py'"'"'; __file__=
    '"'"'/tmp/pip-install-he3_8n02/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.clo
    se();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-uqogdq5p --python-tag cp37
    cwd: /tmp/pip-install-he3_8n02/pyodbc/
    Complete output (10 lines):
    running bdist_wheel
    running build
    running build_ext
    building 'pyodbc' extension
    creating build
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/opt/python/3.7.5/include/python3.7m -c src/buffer
    .cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for pyodbc
    Running setup.py clean for pyodbc
    Building wheel for kiteconnect (setup.py) ... done
    WARNING: Legacy build of wheel for 'kiteconnect' created no files.
    Command arguments: /opt/python/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-he3_8n02/kiteconnect/setup.py'"
    '"'; __file__='"'"'/tmp/pip-install-he3_8n02/kiteconnect/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
    '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-qvu07sxy --python-tag cp37
    Command output: [use --verbose to show]
    Running setup.py clean for kiteconnect
    Failed to build pyodbc kiteconnect
Sign In or Register to comment.