ranaroussi / qtpylib

QTPyLib, Pythonic Algorithmic Trading
http://qtpylib.io
Apache License 2.0
2.16k stars 513 forks source link

[BUG] issues installing QTPYLIB #157

Open cjelsa opened 4 years ago

cjelsa commented 4 years ago

Describe the bug An error when running pip install qtpylib --upgrade --no-cache-dir

To Reproduce In a bash shell in the right conda environment type: pip install qtpylib --upgrade --no-cache-dir

Screenshots ERROR: Command errored out with exit status 1: command: /Users/cjelsa/anaconda3/envs/hft/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5r/_gg810xd6r3dk5sl19fjq0n80000gn/T/pip-install-xuoc4xs3/qtpylib/setup.py'"'"'; file='"'"'/private/var/folders/5r/_gg810xd6r3dk5sl19fjq0n80000gn/T/pip-install-xuoc4xs3/qtpylib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/5r/_gg810xd6r3dk5sl19fjq0n80000gn/T/pip-pip-egg-info-rjzuh04o cwd: /private/var/folders/5r/_gg810xd6r3dk5sl19fjq0n80000gn/T/pip-install-xuoc4xs3/qtpylib/ Complete output (1 lines): error in QTPyLib setup command: "values of 'package_data' dict" must be a list of strings (got 'qtpylib/_webapp/*')

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Desktop (please complete the following information): MacOs 10.14.6 Python 3.8.3, but same issues with 3.7.7 and 3.7.3

Additional context Add any other context about the problem here.

marvin-hansen commented 4 years ago

Bumping up. I get the same error on Python 3.8.6

Update: Just clone the repo, and import the Python scripts and for the most part it works after a bit of patching. I got the thing up & running, connected to the gateway and DB.

However, there is a reason the project has been stalled and I wouldn't exactly recommend it for anything else than learning & testing.

tsguo3 commented 3 years ago

Bump~

Same error for me on Windows, python 3.8.5

Thanks!

simonzhangzp commented 3 years ago

bump ~~ Same error for me on Win 10

gsteri1 commented 3 years ago

Windows python 3.9 same problem....

schwabts commented 3 years ago

duplicate of https://github.com/ranaroussi/qtpylib/issues/141 with workaround https://github.com/ranaroussi/qtpylib/issues/141#issuecomment-551453502 so the flags --upgrade --no-cache-dir added here do not help

Atila027 commented 1 year ago

I have also same problem. python version 3.10.10