brentp / fishers_exact_test

Fishers Exact Test for Python (Cython)
BSD 3-Clause "New" or "Revised" License
62 stars 21 forks source link

Cannot import after installation #6

Closed johanneskoester closed 9 years ago

johanneskoester commented 9 years ago

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.

brentp commented 9 years ago

try from a different directory than the source.

johanneskoester commented 9 years ago

Thanks, that fixed it. Sorry for bothering you, I should have noticed that myself :-).

ghost commented 9 years ago

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.

jrderuiter commented 9 years ago

Same problem here on Python 3.4! 2.7 also works fine here.

brentp commented 9 years ago

@jrderuiter can you try pulling from master and re-installing?

jrderuiter commented 8 years ago

Pulling from master seems to fix the issue. Thanks!

vigneshravi commented 8 years ago

I reinstalled but still having the same problem for Python3.4

ghost commented 8 years ago

There is a fishers exact in scipy if you do not get this one working: scipy.stats.fisher_exact.