Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Code fails for python 3.4.3 #6

Closed
nikilwale opened this issue Mar 1, 2018 · 2 comments
Closed

Code fails for python 3.4.3 #6

nikilwale opened this issue Mar 1, 2018 · 2 comments

Comments

@nikilwale
Copy link

Hi,

I just ran into this error while trying to run the test with Monte Carlo simulation on python 3.4.3 -
File "/usr/lib64/python3.4/site-packages/FisherExact/Fisher.py", line 130, in fisher_exact
tmp_res = _fisher_sim(c, replicate, seed, workspace)
File "/usr/lib64/python3.4/site-packages/FisherExact/Fisher.py", line 243, in _fisher_sim
for i in xrange(2, n + 1):
NameError: name 'xrange' is not defined

I guess 'xrange' is no longer part of python 3 if I am not mistaken.

Thanks,

@maclandrol
Copy link
Owner

Fixed, in the last commit (84ed6da).

I only tested it on py3.3 and 3.6 though, so I'm keeping the issue open until you confirmed it's working.

A new version (v1.4.2) was also released on pip (you should purge the previous installation before).

@nikilwale
Copy link
Author

It works now! Thank you for the quick turn around.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants