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

import error on windows #10

Closed multiquant closed 5 years ago

multiquant commented 5 years ago

When I run the Jupyter notebook that was provided, I get the following error , that is produced by the line "import pyqstrat":

ImportError Traceback (most recent call last)

in 7 import os 8 ----> 9 import pyqstrat as pq 10 11 pq.set_defaults() # Set some display defaults to make dataframes and plots easier to look at ~\Anaconda3\lib\site-packages\pyqstrat\__init__.py in 10 from pyqstrat.plot import * 11 from pyqstrat.evaluator import * ---> 12 from pyqstrat.pyqstrat_cpp import * 13 from pyqstrat.marketdata_processor import * 14 ImportError: DLL load failed: The specified procedure could not be found. My setup is this : 1) Windows 10 2) Anaconda 5.0.1 3) Pyarrow 0.13.0 4) Python 3.6.3
abbass2 commented 5 years ago

Sorry, I’ve been very busy. I’ll look at this over the weekend on my desktop computer which runs Windows.

On Apr 17, 2019, at 3:48 PM, multiquant notifications@github.com wrote:

When I run the Jupyter notebook that was provided, I get the following error , that is produced by the line "import pyqstrat":

ImportError Traceback (most recent call last) in 7 import os 8 ----> 9 import pyqstrat as pq 10 11 pq.set_defaults() # Set some display defaults to make dataframes and plots easier to look at

~\Anaconda3\lib\site-packages\pyqstratinit.py in 10 from pyqstrat.plot import 11 from pyqstrat.evaluator import ---> 12 from pyqstrat.pyqstrat_cpp import 13 from pyqstrat.marketdata_processor import 14

ImportError: DLL load failed: The specified procedure could not be found.

My setup is this :

Windows 10

Anaconda 5.0.1

Pyarrow 0.13.0

Python 3.6.3

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abbass2/pyqstrat/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCN2V6UMCQVODMJQAT6NKLPQ6EKPANCNFSM4HGXW4JA.

abbass2 commented 5 years ago

Hi, I am unable to replicate this on my Windows machine. Are you running your jupyter notebook from the anaconda environment where you installed pyqstrat? Can you try running the following from the command line after you activate your conda environment to try and narrow down the issue: python -c "import pyqstrat as pq"