Import Error Library not loaded: @rpath/libarrow.12.dylib
Closed this issue · 2 comments
girishmithran commented
Getting the below error when trying to import pyqstrat. My set up as follow:
macos10.15
python 3.7.3
boost-cpp 1.67.0
arrow-cpp 0.13
pyarrow 0.13
ImportError: dlopen(/Users/girishmithran/anaconda3/lib/python3.7/site-packages/pyqstrat/pyqstrat_cpp.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libarrow.12.dylib
Referenced from: /Users/girishmithran/anaconda3/lib/python3.7/site-packages/pyqstrat/pyqstrat_cpp.cpython-37m-darwin.so
Reason: image not found
abbass2 commented
This looks like you are compiling with arrow 0.12 but running with arrow 0.13. Could you please reinstall pyqstrat and send me the output of the installation process.
Thanks
Sal
… On Oct 9, 2019, at 11:54 PM, Girish Mithran ***@***.***> wrote:
Getting the below error when trying to import pyqstrat. My set up as follow:
macos10.15
python 3.7.3
boost-cpp 1.67.0
arrow-cpp 0.13
pyarrow 0.13
ImportError: dlopen(/Users/girishmithran/anaconda3/lib/python3.7/site-packages/pyqstrat/pyqstrat_cpp.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libarrow.12.dylib
Referenced from: /Users/girishmithran/anaconda3/lib/python3.7/site-packages/pyqstrat/pyqstrat_cpp.cpython-37m-darwin.so
Reason: image not found
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#16?email_source=notifications&email_token=ABCN2V5CMZSJ7BB7Z5LUCZTQN2YRRA5CNFSM4I7H2JE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQ2GOBQ>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABCN2V5VLSHIEUYLD3FP45LQN2YRRANCNFSM4I7H2JEQ>.
abbass2 commented
Sorry, I meant for you to uninstall and then reinstall pyqstrat so that I could see the compilation messages for the C++ code. But glad you found a workaround.
… On Oct 10, 2019, at 10:58 PM, Girish Mithran ***@***.***> wrote:
Hi Sal
Reinstalling by 'pip install pyqstrat' didn't help. I got the same Import Error. I tried installing with the .tar.gz file from PyPi which fixed the issue. Install messages for both below.
% pip install pyqstrat
Collecting pyqstrat
Requirement already satisfied: numpy>=1.14 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (1.17.2)
Requirement already satisfied: scipy>=1.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (1.3.1)
Requirement already satisfied: pyarrow>=0.1.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (0.13.0)
Requirement already satisfied: pandas>=0.22 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (0.25.1)
Requirement already satisfied: matplotlib>=2.2.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (3.1.1)
Requirement already satisfied: pybind11>=2.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (2.4.2)
Requirement already satisfied: ipython>=6.5.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (7.8.0)
Requirement already satisfied: sortedcontainers>=2.0.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat) (2.1.0)
Requirement already satisfied: six>=1.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyarrow>=0.1.0->pyqstrat) (1.12.0)
Requirement already satisfied: python-dateutil>=2.6.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pandas>=0.22->pyqstrat) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pandas>=0.22->pyqstrat) (2019.3)
Requirement already satisfied: cycler>=0.10 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat) (2.4.2)
Requirement already satisfied: pexpect; sys_platform != "win32" in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (4.7.0)
Requirement already satisfied: pygments in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (2.4.2)
Requirement already satisfied: backcall in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (0.1.0)
Requirement already satisfied: traitlets>=4.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (4.3.3)
Requirement already satisfied: setuptools>=18.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (41.4.0)
Requirement already satisfied: appnope; sys_platform == "darwin" in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (0.1.0)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (2.0.10)
Requirement already satisfied: jedi>=0.10 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (0.15.1)
Requirement already satisfied: pickleshare in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (0.7.5)
Requirement already satisfied: decorator in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat) (4.4.0)
Requirement already satisfied: ptyprocess>=0.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->ipython>=6.5.0->pyqstrat) (0.6.0)
Requirement already satisfied: ipython-genutils in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from traitlets>=4.2->ipython>=6.5.0->pyqstrat) (0.2.0)
Requirement already satisfied: wcwidth in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=6.5.0->pyqstrat) (0.1.7)
Requirement already satisfied: parso>=0.5.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from jedi>=0.10->ipython>=6.5.0->pyqstrat) (0.5.1)
Installing collected packages: pyqstrat
Successfully installed pyqstrat-0.3.10
%pip install https://files.pythonhosted.org/packages/d0/61/e7d0e613a10ace346b9799bd5be610cc4e9fe61eb1701625400e8ab592cb/pyqstrat-0.3.10.tar.gz <https://files.pythonhosted.org/packages/d0/61/e7d0e613a10ace346b9799bd5be610cc4e9fe61eb1701625400e8ab592cb/pyqstrat-0.3.10.tar.gz>
Collecting https://files.pythonhosted.org/packages/d0/61/e7d0e613a10ace346b9799bd5be610cc4e9fe61eb1701625400e8ab592cb/pyqstrat-0.3.10.tar.gz <https://files.pythonhosted.org/packages/d0/61/e7d0e613a10ace346b9799bd5be610cc4e9fe61eb1701625400e8ab592cb/pyqstrat-0.3.10.tar.gz>
Requirement already satisfied: pandas>=0.22 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (0.25.1)
Requirement already satisfied: numpy>=1.14 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (1.17.2)
Requirement already satisfied: matplotlib>=2.2.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (3.1.1)
Requirement already satisfied: scipy>=1.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (1.3.1)
Requirement already satisfied: ipython>=6.5.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (7.8.0)
Requirement already satisfied: pybind11>=2.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (2.4.2)
Requirement already satisfied: pyarrow>=0.1.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (0.13.0)
Requirement already satisfied: sortedcontainers>=2.0.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyqstrat==0.3.10) (2.1.0)
Requirement already satisfied: python-dateutil>=2.6.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pandas>=0.22->pyqstrat==0.3.10) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pandas>=0.22->pyqstrat==0.3.10) (2019.3)
Requirement already satisfied: cycler>=0.10 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat==0.3.10) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat==0.3.10) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from matplotlib>=2.2.2->pyqstrat==0.3.10) (2.4.2)
Requirement already satisfied: traitlets>=4.2 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (4.3.3)
Requirement already satisfied: jedi>=0.10 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (0.15.1)
Requirement already satisfied: decorator in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (4.4.0)
Requirement already satisfied: setuptools>=18.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (41.4.0)
Requirement already satisfied: pexpect; sys_platform != "win32" in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (4.7.0)
Requirement already satisfied: appnope; sys_platform == "darwin" in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (0.1.0)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (2.0.10)
Requirement already satisfied: backcall in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (0.1.0)
Requirement already satisfied: pickleshare in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (0.7.5)
Requirement already satisfied: pygments in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from ipython>=6.5.0->pyqstrat==0.3.10) (2.4.2)
Requirement already satisfied: six>=1.0.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pyarrow>=0.1.0->pyqstrat==0.3.10) (1.12.0)
Requirement already satisfied: ipython-genutils in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from traitlets>=4.2->ipython>=6.5.0->pyqstrat==0.3.10) (0.2.0)
Requirement already satisfied: parso>=0.5.0 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from jedi>=0.10->ipython>=6.5.0->pyqstrat==0.3.10) (0.5.1)
Requirement already satisfied: ptyprocess>=0.5 in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->ipython>=6.5.0->pyqstrat==0.3.10) (0.6.0)
Requirement already satisfied: wcwidth in /Users/girishmithran/anaconda3/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=6.5.0->pyqstrat==0.3.10) (0.1.7)
Building wheels for collected packages: pyqstrat
Building wheel for pyqstrat (setup.py) ... done
Created wheel for pyqstrat: filename=pyqstrat-0.3.10-cp37-cp37m-macosx_10_7_x86_64.whl size=7409684 sha256=3068ce7812b18d2bd9cc069ede09769fd3884ab5b25810af901cc092f0be515a
Stored in directory: /Users/girishmithran/Library/Caches/pip/wheels/4c/5b/ad/637ca0cc684a2c11297c9dd08f05dbd935681357cf2a6a6be0
Successfully built pyqstrat
Installing collected packages: pyqstrat
Successfully installed pyqstrat-0.3.10
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#16?email_source=notifications&email_token=ABCN2V6IIMY65DWY7FOVUMTQN72X3A5CNFSM4I7H2JE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6VSKA#issuecomment-540891432>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABCN2V77NGBHXFVFFBLKI2TQN72X3ANCNFSM4I7H2JEQ>.