Cannot import after installation
johanneskoester opened this issue · comments
After installing the package, I get the following when importing:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "./fisher/__init__.py", line 1, in <module>
from .cfisher import *
ImportError: No module named 'fisher.cfisher'
This is under Python 3.3, with current git master.
try from a different directory than the source.
Thanks, that fixed it. Sorry for bothering you, I should have noticed that myself :-).
I'm having the same problem from any directory:
Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:03:53)
Type "copyright", "credits" or "license" for more information.
IPython 3.1.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import fisher
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-c2e764f3c9cb> in <module>()
----> 1 import fisher
/local/home/endrebak/anaconda/envs/py34/lib/python3.4/site-packages/fisher-0.1.4-py3.4-linux-x86_64.egg/fisher/__init__.py in <module>()
----> 1 from cfisher import *
ImportError: No module named 'cfisher'
It works with 2.7
though.
Same problem here on Python 3.4! 2.7 also works fine here.
@jrderuiter can you try pulling from master and re-installing?
Pulling from master seems to fix the issue. Thanks!
I reinstalled but still having the same problem for Python3.4
There is a fishers exact in scipy if you do not get this one working: scipy.stats.fisher_exact
.