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

Can't open package #3

Open
tuliosouzabh opened this issue Nov 20, 2020 · 2 comments
Open

Can't open package #3

tuliosouzabh opened this issue Nov 20, 2020 · 2 comments

Comments

@tuliosouzabh
Copy link


OSError Traceback (most recent call last)
in
----> 1 from cprior.models import BernoulliModel

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/cprior/models/init.py in
----> 1 from .bernoulli import BernoulliABTest
2 from .bernoulli import BernoulliModel
3 from .bernoulli import BernoulliMVTest
4
5 from .binomial import BinomialABTest

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/cprior/models/bernoulli.py in
8 import numpy as np
9
---> 10 from ..cdist import BetaABTest
11 from ..cdist import BetaModel
12 from ..cdist import BetaMVTest

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/cprior/cdist/init.py in
----> 1 from .beta import BetaABTest
2 from .beta import BetaModel
3 from .beta import BetaMVTest
4
5 from .gamma import GammaABTest

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/cprior/cdist/beta.py in
15 from scipy import stats
16
---> 17 from .._lib.cprior import beta_cprior
18 from .base import BayesABTest
19 from .base import BayesModel

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/cprior/_lib/cprior.py in
21 cprior = npct.load_library("_cprior.so", libabspath)
22 else:
---> 23 cprior = npct.load_library("cprior.dll", libabspath)
24
25

~/opt/anaconda3/envs/postclick/lib/python3.8/site-packages/numpy/ctypeslib.py in load_library(libname, loader_path)
155 raise
156 ## if no successful return in the libname_ext loop:
--> 157 raise OSError("no file with expected extension")
158
159 ctypes_load_library = deprecate(load_library, 'ctypes_load_library',

OSError: no file with expected extension

@guillermo-navas-palencia
Copy link
Owner

Hi @tuliosouzabh,

What's your OS? If your OS is not Windows or Linux, you have to install the library from source. See instructions: http://gnpalencia.org/cprior/getting_started.html#installation.

@awoehrl
Copy link

awoehrl commented Jun 10, 2021

Hi I'm on Windows 10 and I'm seeing the above error as well.

alonme pushed a commit to alonme/cprior that referenced this issue Dec 27, 2022
…ative-lift-calculations-internal

support relative lift in betamvtest
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

3 participants