easySFS icon indicating copy to clipboard operation
easySFS copied to clipboard

No module named 'dadi'

Open XiaXiaTianTian opened this issue 2 years ago • 7 comments

Hi, Isaac!

I'm using easySFS, but met the following error .ModuleNotFoundError: No module named 'dadi'I found that it looks like a previous issue #17 So I checked python version. It'sPython 3.6.5, and conda listshowed I've installeddadi`.

Thanks for your attention to this matter.

Best, Xia

XiaXiaTianTian avatar Jul 08 '22 14:07 XiaXiaTianTian

Hello Xia,

Python 3.6 is a pretty old version, so you might try creating a new conda environment with a newer python version:

conda create -n easySFS_py310 python=3.10 conda activate easySFS_py310

And then install dadi and easySFS inside this conda env. I'm sure that will fix the problem.

Try this and let me know how it goes.

isaacovercast avatar Jul 08 '22 17:07 isaacovercast

Sorry. I tried but still failed in the same error. conda create -n easySFS_py310 python=3.10 conda activate easySFS_py310 mamba install dadi mamba install pandas

And mamba list shows versions are pandas 1.4.3 ; dadi 2.1.2 ; python 3.10.5.

XiaXiaTianTian avatar Jul 11 '22 06:07 XiaXiaTianTian

Do you still get the ModuleNotFoundError? What happens when you do this:

python
import dadi

isaacovercast avatar Jul 13 '22 15:07 isaacovercast

I just tried this in a clean conda env and it worked fine for me:

conda create -n easySFS python=3.10
conda activate easySFs
git clone https://github.com/isaacovercast/easySFS.git
conda install -c conda-forge dadi pandas
cd easySFS/
./easySFS.py 

isaacovercast avatar Jul 13 '22 19:07 isaacovercast

Fixed?

isaacovercast avatar Aug 05 '22 18:08 isaacovercast

Fixed?

I tried several times. I am sure your suggestion is correct. Because when some other softwares came into similar (No Module Named ""), they can be fixed using this solution. But this time seem to not work.

XiaXiaTianTian avatar Aug 09 '22 09:08 XiaXiaTianTian

Can you show me the exact error message including the command line you type to generate it? Did you follow the exact instructions I posted? It should work, so if it's not working maybe check your python path, it could be something funky with your local python configuration.

isaacovercast avatar Aug 09 '22 14:08 isaacovercast

I removed the dependency on the dadi module in the most recent version. fa521cd

isaacovercast avatar Jan 28 '23 17:01 isaacovercast