medema-group / bigslice

A highly scalable, user-interactive tool for the large scale analysis of Biosynthetic Gene Clusters data
GNU Affero General Public License v3.0
75 stars 39 forks source link

Installation check #65

Open yschencau opened 1 year ago

yschencau commented 1 year ago

Hi. I had some problems during installation check, and I tried hard to fix it but still didn't work. The problem seemed like occur in birch.py as ''raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'float''' when I typed "bigslice --version''. If you have any solutions or instructions, please contact me as soon as possible. Thanks.

AaronAOliver commented 1 year ago

I had the same problem, I fixed it by using a conda environment with python=3.7, then using pip install bigslice on python 3.7.

yschencau commented 1 year ago

Thanks a lot! The problem was solved.

jowodo commented 10 months ago

The problem still persists and python 3.7 is end-of-life. The easiest way to circumvent this problem is to pin numpy to version <1.24:

pip install bigslice numpy<1.24
# or alternitively
pip install bigslice numpy==1.23

This works for python 3.8, 3.9, 3.10. Unfortunately, biopython 1.76 seems to be incompatible with python >=3.11.

For the next release of bigslice the versions of numpy and biopython should be ideally bumped to their latest. This would allow to install bigslice on newer python version.

yschencau commented 10 months ago

Thank you for your email. This is an automatic reply, confirming that your email was received. I will reply as soon as possible.  Best wishes. Yunsheng

jowodo commented 8 months ago

This issue is resolved for me with bigslice version 2.0.0. It seems that numpy >=1.24 is compatible with bigslice 2.0, which again makes it compatible with python >=3.11. That is bigslice --version works without problem.

yschencau commented 8 months ago

Thank you for your email. This is an automatic reply, confirming that your email was received. I will reply as soon as possible.  Best wishes. Yunsheng