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

Pb with installation: cannot load any function from aletheia #2

Open
datajms opened this issue Nov 23, 2020 · 4 comments
Open

Pb with installation: cannot load any function from aletheia #2

datajms opened this issue Nov 23, 2020 · 4 comments

Comments

@datajms
Copy link

datajms commented Nov 23, 2020

Hi,

I've followed README instructions for installation, but I cannot make aletheia work. Here is my config:

But, here is the error when running a example notebook:
image

Any ideas?

@ragibson
Copy link

ragibson commented Nov 23, 2020

I just ran across this repo and the README instructions worked on my end. Are you sure you've installed it correctly?

I.e. does

import aletheia
dir(aletheia)

print the expected classes? It should print something like

['MergerClassifier', 'MergerRegressor', 'PrunerClassifier', 'PrunerRegressor', 'UnwrapperClassifier', 'UnwrapperRegressor', '__all__', '__author__', '__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__test__', '__version__', 'aletheia', 'flatten', 'merge', 'prune']

Also, does pip show the right version? I have

$ pip3 show aletheia
Name: aletheia
Version: 1.0
Summary: Unwrapping ReLU Networks
Home-page: https://github.com/SelfExplainML/aletheia
Author: Zebin Yang and Aijun Zhang
Author-email: yangzb2010@hku.hk
License: BSD

@datajms
Copy link
Author

datajms commented Nov 23, 2020

Thanks for answer.

I reinstalled it from scratch following literally instructions from README, same problem unfortunately.
image.

@ZebinYang
Copy link
Collaborator

Hi,
Thanks for letting us know this issue. It seems to be a problem related to OS.
Our last trial version is compiled for Linux (CentOS) and a new one for Ubuntu (16.04) is provided.
Could you have another try?

@datajms
Copy link
Author

datajms commented Nov 23, 2020

Thanks for uploading built versions for Ubuntu.

Since a5a3503, here is what I tried:

OS python worked?
Ubuntu 16.04 3.7.2 N
Ubuntu 16.04 3.8.1 Y
Amazon Linux 3.7.2 N
Ubuntu 20.04 3.8.1 Y

It finally worked. Thanks for the support.
Probably an issue with python 3.7.

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