Skip to content
New issue

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

Install Tick 0.7.0.1 on Windows 10/11 with Python 3.9 #509

Open
lgoix opened this issue Feb 7, 2023 · 0 comments
Open

Install Tick 0.7.0.1 on Windows 10/11 with Python 3.9 #509

lgoix opened this issue Feb 7, 2023 · 0 comments

Comments

@lgoix
Copy link

lgoix commented Feb 7, 2023

Tested with python versions :

  • 3.9.13
  • 3.9.0

Swig:

  • version 4.1.1 installed and in env variable Path

OS:

  • Windows 10
  • Windows 11

Visual Studio Build Tools 2022:

  • 17.4.3

Previously installed:

numpy==1.23.1 | numpy==1.24.1
scipy==1.9.0
matplotlib==3.6.3
pandas==1.4.3
scikit-learn==1.2.0

Steps to reproduce:

  1. Download the zip archive from the current master (75d252d): https://github.com/X-DataInitiative/tick/archive/refs/heads/master.zip
  2. Download cereal archive from: https://github.com/USCiLab/cereal/archive/51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4.zip
  3. Inject in the zip file the missing cereal include files:
  • copy directory cereal-51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4-1.zip\cereal-51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4\include\ in tick-master.zip\tick-master\lib\third_party\cereal\
  1. Save the tick-master.zip file and then install it: pip install tick-master.zip

When we test Tick, we have the DLL issue:
python -c "import tick;"

File "C:\repos\project\venv\lib\site-packages\tick\array\build\array.py", line 10, in <module>
from . import _array
ImportError: DLL load failed while importing _array: A dynamic link library (DLL) initialization routine failed.

Workaround

Instead of using the latest version on master, we have been able to build Tick following the same procedure using an older commit (May 23, 2020) version: 73acead

(venv) C:\repos\project>python -V
Python 3.9.0

(venv) C:\repos\project>pip show tick
Name: tick
Version: 0.7.0.1
Summary: Module for statistical learning, with a particular emphasis on time-dependent modelling
Home-page: https://x-datainitiative.github.io/tick/
Author: Emmanuel Bacry, Stephane Gaiffas, Martin Bompaire, Søren V. Poulsen, Maryan Morel, Simon Bussy, Philip Deegan
Author-email: [email protected], [email protected]
License: UNKNOWN
Location: c:\repos\project\venv\lib\site-packages
Requires: numpy, scipy, sphinx, matplotlib, pandas, scikit-learn, dill, numpydoc
Required-by:

(venv) C:\repos\project>python -c "import tick;"

(venv) C:\repos\project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant