I installed phy on an Ubuntu 22.04 LTS machine with a fresh perfectly working version of Anaconda exactly as specified on the github page (in italics below) and got the error at the bottom. Phy could not find the module imp.py Earlier version of phy installed on other machines were fine.
(phy2) idl@mps-pc59:/nas/data/2019/2019_06_25-ks$ phy template-gui params.py
Traceback (most recent call last):
File "/home/idl/yes/envs/phy2/bin/phy", line 5, in
from phy.apps import phycli
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/init.py", line 21, in
from .utils.config import load_master_config
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/utils/init.py", line 8, in
from .plugin import IPlugin, attach_plugins
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/utils/plugin.py", line 14, in
import imp
ModuleNotFoundError: No module named 'imp'
imp was removed from python 3.12. You need to specify <3.12. My advice would be to download the environment.yaml and then edit the line with python and set it to
I installed phy on an Ubuntu 22.04 LTS machine with a fresh perfectly working version of Anaconda exactly as specified on the github page (in italics below) and got the error at the bottom. Phy could not find the module imp.py Earlier version of phy installed on other machines were fine.
_conda create -n phy2 -y cython dask h5py joblib matplotlib numpy pillow pip pyopengl pyqt pyqtwebengine pytest python qtconsole requests responses scikit-learn scipy traitlets conda activate phy2 pip install git+https://github.com/cortex-lab/phy.git cd mykilosort_outputfolder phy template-gui params.py
(phy2) idl@mps-pc59:/nas/data/2019/2019_06_25-ks$ phy template-gui params.py Traceback (most recent call last): File "/home/idl/yes/envs/phy2/bin/phy", line 5, in
from phy.apps import phycli
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/init.py", line 21, in
from .utils.config import load_master_config
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/utils/init.py", line 8, in
from .plugin import IPlugin, attach_plugins
File "/home/idl/yes/envs/phy2/lib/python3.12/site-packages/phy/utils/plugin.py", line 14, in
import imp
ModuleNotFoundError: No module named 'imp'