We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rqalpha-3.2.0.tar.gz
$ python --version Python 3.7.2
cat /etc/lsb-release DISTRIB_ID=ManjaroLinux DISTRIB_RELEASE=18.0.2 DISTRIB_CODENAME=Illyria DISTRIB_DESCRIPTION="Manjaro Linux"
这个安装错误,不知什么原因,是不是Python3.7 C API变更了?
sudo pip install rqalpha [sudo] password for micfan: Collecting rqalpha Using cached https://files.pythonhosted.org/packages/6c/57/532de779be0fd1ff1dc6fb4d2a18b3905b998691b980be4bd44da2a312c3/rqalpha-3.2.0.tar.gz Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from rqalpha) (2.21.0) Requirement already satisfied: numpy>=1.11.1 in /usr/lib/python3.7/site-packages (from rqalpha) (1.16.0) Requirement already satisfied: pandas>=0.18.1 in /usr/lib/python3.7/site-packages (from rqalpha) (0.24.0) Requirement already satisfied: python-dateutil>=2.5.3 in /usr/lib/python3.7/site-packages (from rqalpha) (2.7.5) Requirement already satisfied: pytz>=2016.4 in /usr/lib/python3.7/site-packages (from rqalpha) (2018.9) Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.7/site-packages (from rqalpha) (1.12.0) Requirement already satisfied: pytest>=2.9.2 in /usr/lib/python3.7/site-packages (from rqalpha) (4.1.1) Requirement already satisfied: logbook>=1.0.0 in /usr/lib/python3.7/site-packages (from rqalpha) (1.4.3) Requirement already satisfied: click>=7.0 in /usr/lib/python3.7/site-packages (from rqalpha) (7.0) Requirement already satisfied: bcolz>=1.1.0 in /usr/lib/python3.7/site-packages (from rqalpha) (1.2.1) Requirement already satisfied: matplotlib>=1.5.1 in /usr/lib/python3.7/site-packages (from rqalpha) (3.0.2) Requirement already satisfied: jsonpickle==0.9.4 in /usr/lib/python3.7/site-packages (from rqalpha) (0.9.4) Requirement already satisfied: simplejson>=3.10.0 in /usr/lib/python3.7/site-packages (from rqalpha) (3.16.0) Requirement already satisfied: dill==0.2.5 in /usr/lib/python3.7/site-packages (from rqalpha) (0.2.5) Requirement already satisfied: XlsxWriter>=0.9.6 in /usr/lib/python3.7/site-packages (from rqalpha) (1.1.2) Collecting line-profiler>=2.0 (from rqalpha) Using cached https://files.pythonhosted.org/packages/14/fc/ecf4e238bb601ff829068e5a72cd1bd67b0ee0ae379db172eb6a0779c6b6/line_profiler-2.1.2.tar.gz Requirement already satisfied: PyYAML>=3.12 in /usr/lib/python3.7/site-packages (from rqalpha) (3.13) Collecting tabulate (from rqalpha) Using cached https://files.pythonhosted.org/packages/c2/fd/202954b3f0eb896c53b7b6f07390851b1fd2ca84aa95880d7ae4f434c4ac/tabulate-0.8.3.tar.gz Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.7/site-packages (from requests->rqalpha) (3.0.4) Requirement already satisfied: idna>=2.5 in /usr/lib/python3.7/site-packages (from requests->rqalpha) (2.8) Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->rqalpha) (1.24.1) Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (40.6.3) Requirement already satisfied: py>=1.5.0 in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (1.7.0) Requirement already satisfied: pluggy>=0.7 in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (0.8.1) Requirement already satisfied: more-itertools>=4.0.0 in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (5.0.0) Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (18.2.0) Requirement already satisfied: atomicwrites>=1.0 in /usr/lib/python3.7/site-packages (from pytest>=2.9.2->rqalpha) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib/python3.7/site-packages (from matplotlib>=1.5.1->rqalpha) (1.0.1) Requirement already satisfied: cycler>=0.10 in /usr/lib/python3.7/site-packages (from matplotlib>=1.5.1->rqalpha) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/lib/python3.7/site-packages (from matplotlib>=1.5.1->rqalpha) (2.3.1) Requirement already satisfied: IPython>=0.13 in /usr/lib/python3.7/site-packages (from line-profiler>=2.0->rqalpha) (7.2.0) Requirement already satisfied: pygments in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (2.3.1) Requirement already satisfied: pexpect; sys_platform != "win32" in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (4.6.0) Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (2.0.7) Requirement already satisfied: decorator in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (4.3.2) Requirement already satisfied: backcall in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (0.1.0) Requirement already satisfied: jedi>=0.10 in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (0.13.2) Requirement already satisfied: pickleshare in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (0.7.5) Requirement already satisfied: traitlets>=4.2 in /usr/lib/python3.7/site-packages (from IPython>=0.13->line-profiler>=2.0->rqalpha) (4.3.2) Requirement already satisfied: wcwidth in /usr/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->IPython>=0.13->line-profiler>=2.0->rqalpha) (0.1.7) Requirement already satisfied: parso>=0.3.0 in /usr/lib/python3.7/site-packages (from jedi>=0.10->IPython>=0.13->line-profiler>=2.0->rqalpha) (0.3.2) Requirement already satisfied: ipython-genutils in /usr/lib/python3.7/site-packages (from traitlets>=4.2->IPython>=0.13->line-profiler>=2.0->rqalpha) (0.2.0) Installing collected packages: line-profiler, tabulate, rqalpha Running setup.py install for line-profiler ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0oqnk55i/line-profiler/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-2a1skyzk/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 copying line_profiler.py -> build/lib.linux-x86_64-3.7 copying kernprof.py -> build/lib.linux-x86_64-3.7 copying line_profiler_py35.py -> build/lib.linux-x86_64-3.7 running build_ext skipping '_line_profiler.c' Cython extension (up-to-date) building '_line_profiler' extension creating build/temp.linux-x86_64-3.7 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python3.7m -c _line_profiler.c -o build/temp.linux-x86_64-3.7/_line_profiler.o _line_profiler.c: In function ‘__Pyx__ExceptionSave’: _line_profiler.c:7890:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? *type = tstate->exc_type; ^~~~~~~~ curexc_type _line_profiler.c:7891:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? *value = tstate->exc_value; ^~~~~~~~~ curexc_value _line_profiler.c:7892:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback _line_profiler.c: In function ‘__Pyx__ExceptionReset’: _line_profiler.c:7899:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type _line_profiler.c:7900:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value _line_profiler.c:7901:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback _line_profiler.c:7902:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~~~~~ curexc_type _line_profiler.c:7903:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~~~~~ curexc_value _line_profiler.c:7904:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~~~~~~~~~ curexc_traceback _line_profiler.c: In function ‘__Pyx__GetException’: _line_profiler.c:7959:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~~~~~ curexc_type _line_profiler.c:7960:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value _line_profiler.c:7961:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback _line_profiler.c:7962:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~~~~~ curexc_type _line_profiler.c:7963:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~~~~~ curexc_value _line_profiler.c:7964:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~~~~~~~~~ curexc_traceback error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0oqnk55i/line-profiler/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-2a1skyzk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-0oqnk55i/line-profiler/
The text was updated successfully, but these errors were encountered:
这是安装 line-profiler 报出的错误,与 rqalpha 无关。 解决方案可以参考 rkern/line_profiler#132
Sorry, something went wrong.
No branches or pull requests
1. RQAlpha的版本
rqalpha-3.2.0.tar.gz
2. Python的版本
3. 是Windows/Linux/MacOS or others?
4. 您出现问题对应的源码/或者能复现问题的简易代码 以及对应的配置
这个安装错误,不知什么原因,是不是Python3.7 C API变更了?
5. 您出现的错误堆栈日志信息
The text was updated successfully, but these errors were encountered: