abbass2 / pyqstrat

A fast, extensible, transparent python library for backtesting quantitative strategies.
BSD 3-Clause "New" or "Revised" License
353 stars 57 forks source link

install instructions not working on linux #7

Closed davidbuzz closed 5 years ago

davidbuzz commented 5 years ago

machine: Ubuntu 18.04.2 LTS attempted install of conda, as per instructions: bash ~/Downloads/Anaconda3-2018.12-Linux-x86_64.sh saying yes to everything except "studio code". I got version: installing: python-3.7.1-h0371630_7 and a bunch of other packages. I closed and re-opend my terminal after install, as instructed. in new terminal: source activate base (base) added to my prompt. conda install boost-cpp arrow-cpp -c conda-forge I get : [snip] The following NEW packages will be INSTALLED:

arrow-cpp:  0.11.1-py37h3bd774a_1 conda-forge
boost-cpp:  1.68.0-h11c811c_1000  conda-forge
libevent:   2.1.8-h9d9f1b6_0      conda-forge
thrift-cpp: 0.11.0-h02b749d_3                

The following packages will be UPDATED:

conda:      4.5.12-py37_0                     --> 4.6.7-py37_0 conda-forge

[snip] .. and it completes successfully. then: ~$ pip install pyqstrat and get : [snip] Installing collected packages: pybind11, pyarrow, pyqstrat Successfully installed pyarrow-0.12.1 pybind11-2.2.4 pyqstrat-0.2.15

finally, I test it the simplest way I know how, and it fails. : python Python 3.7.1 (default, Dec 14 2018, 19:28:38) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

import pyqstrat Traceback (most recent call last): File "", line 1, in File "/home/buzz/anaconda3/lib/python3.7/site-packages/pyqstrat/init.py", line 12, in from pyqstrat.pyqstrat_cpp import * ImportError: /home/buzz/anaconda3/lib/python3.7/site-packages/pyqstrat/pyqstrat_cpp.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow6Status8ToStringB5cxx11Ev

davidbuzz commented 5 years ago

further details, it seem someone else has had a similar issue to me, here: https://groups.io/g/pyqstrat/topic/installationproblems/29574459?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,29574459 .. and it was supposed to be fixed by 0.2.13, but I still get a similar compiler error with 0.2.15