quantopian / empyrical

Common financial risk and performance metrics. Used by zipline and pyfolio.
https://quantopian.github.io/empyrical
Apache License 2.0
1.31k stars 406 forks source link

Safety Error on empyrical installed via conda-forge #132

Closed RichardDale closed 3 years ago

RichardDale commented 3 years ago

Issue with empyrical-0.5.5 on conda-forge:

During installation of Zipline v1.4.1, which installs Empyrical as a dependency, Conda reports an apparently corrupted file.

SafetyError: The package for empyrical located at C:\Users\test\Anaconda3\pkgs\empyrical-0.5.5-pyh9f0ad1d_0 appears to be corrupted. The path 'site-packages/empyrical/utils.py' has an incorrect size. reported size: 16676 bytes actual size: 16753 bytes

Despite this SafetyError, utils.py does get installed and appears to be functional.

Environment: Windows 10, Anaconda 64 bit

How to replicate just with empyrical standalone install:

conda create -n empyricaltest python=3.6
conda activate empyricaltest
conda install -c conda-forge empyrical

How to replicate, as part of a Zipline v1.4.1 installation:

conda create -n zip141 python=3.6
conda activate zip141
conda install -c conda-forge zipline
RichardDale commented 3 years ago

Ignore this issue - it was due to some debugging I was doing locally and doesn't occur after reinstall.