Cannot import SpikeSelector after Phy update

58 views
Skip to first unread message

Jose Guzman

unread,
Mar 30, 2020, 11:26:32 AM3/30/20
to phy-users
Hi everybody,

I'm using the dev branch of the git repository of Phy:

phy                       2.0b2.dev0                dev_0    <develop>
phylib                    
2.3a0                     dev_0    <develop>

and run into the following import error:

(analysis) segundo.martinez@pcl-imba-3:test$ phy template-gui params.py

Traceback (most recent call last):

 File "/home/segundo.martinez/miniconda3/envs/analysis/bin/phy", line 11, in <module>

   load_entry_point('phy', 'console_scripts', 'phy')()

 File "/home/segundo.martinez/miniconda3/envs/analysis/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point

   return get_distribution(dist).load_entry_point(group, name)

 File "/home/segundo.martinez/miniconda3/envs/analysis/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point

   return ep.load()

 File "/home/segundo.martinez/miniconda3/envs/analysis/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2443, in load

   return self.resolve()

 File "/home/segundo.martinez/miniconda3/envs/analysis/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2449, in resolve

   module = __import__(self.module_name, fromlist=['__name__'], level=0)

 File "/home/segundo.martinez/git/phy/phy/apps/__init__.py", line 25, in <module>

   from .base import (  # noqa

 File "/home/segundo.martinez/git/phy/phy/apps/base.py", line 21, in <module>

   from phylib.io.array import SpikeSelector, _flatten

ImportError: cannot import name 'SpikeSelector'



I would appreciate any hint on how to solve this error

Thanks in advance

Jose

Cyrille Rossant

unread,
Apr 3, 2020, 5:00:37 AM4/3/20
to Jose Guzman, phy-users
Hi
I would suggest to switch to master for both phy and phylib now.
From now on, most users should use either the pip release or the master branch, whereas the dev branch is for developers.
Best,
Cyrille


--
You received this message because you are subscribed to the Google Groups "phy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phy-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/phy-users/260f8c03-521e-4dd1-8a2d-95d7cba835fb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages