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

AttributeError: 'module' object has no attribute '__version__' #17

Open
Mingsenli opened this issue Mar 12, 2021 · 7 comments
Open

AttributeError: 'module' object has no attribute '__version__' #17

Mingsenli opened this issue Mar 12, 2021 · 7 comments

Comments

@Mingsenli
Copy link

Hello, edd is an useful tool, and i really need it. Thank you for your contribution and sharing.

When i run edd, the following error was made. How can i solve this problem? As a beginner, i hope to get a detailed solution.
Looking forward to your reply. Thank you.

edd --write-log-ratios --write-bin-scores
chrNameLength.txt hg19.blacklist.merge.bed
H3K9me2_ab.rmdup.bam input.rmdup.bam H3K9me2_ab

Traceback (most recent call last):
File "/data/User/limingsen/.conda/envs/EDD/bin/edd", line 133, in
import eddlib.experiment
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/eddlib/experiment.py", line 18, in
import logit
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/eddlib/logit.py", line 3, in
from statsmodels.stats.proportion import proportion_confint
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/stats/init.py", line 1, in
from statsmodels.tools._testing import PytestTester
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/tools/init.py", line 1, in
from .tools import add_constant, categorical
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/tools/tools.py", line 8, in
from statsmodels.compat.python import lzip, lmap
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/compat/init.py", line 1, in
from statsmodels.tools._testing import PytestTester
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/tools/_testing.py", line 11, in
from statsmodels.compat.pandas import assert_equal
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/compat/pandas.py", line 4, in
import numpy as np
File "/data/User/limingsen/.conda/envs/EDD/lib/python2.7/site-packages/statsmodels/compat/numpy.py", line 46, in
NP_LT_114 = LooseVersion(np.version) < LooseVersion('1.14')
AttributeError: 'module' object has no attribute 'version'

@zhangshuli-stu
Copy link

hello, do you solve the problem? I also have the same problem and do not know how to solve. If it is convenient, could you please help me? I will be very grateful.

@Mingsenli
Copy link
Author

Mingsenli commented Jan 22, 2022 via email

@zhangshuli-stu
Copy link

zhangshuli-stu commented Jan 22, 2022 via email

@dmalzl
Copy link

dmalzl commented Feb 13, 2022

As far as my investigation went I found that it is actually not EDD that is causing the problem but rather statsmodels which apparently is incompatible with python 2.7 from it 0.11 version (also see here). Thus, I would say a quick solution might be getting an older version of statsmodels (like 0.10)

@zhangshuli-stu
Copy link

zhangshuli-stu commented Feb 14, 2022 via email

@Mingsenli
Copy link
Author

Mingsenli commented Mar 7, 2022 via email

@zhangshuli-stu
Copy link

zhangshuli-stu commented Mar 7, 2022 via email

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