NeuroNetMem / PythonPlugin

A plugin for open-ephys enabling the insertion of Cython into the open-ephys signal chain.
11 stars 17 forks source link

python plugin is not ready (windows) #23

Open ghost opened 5 years ago

ghost commented 5 years ago

first of all, thank you for the plugin!

i've successfully compiled and built the python plugin (i need to install VS2015 build tools because of the dependency) i also used python 3.6 and cython 0.28.2 to compile the module there's some warning (about conversion and possible loss of data), but the code's generated

however, after i load the .pyd file in the python filter gui, there's nothing! it's just a blank module (i used the spwfinder as an example and expected to see interfaces based on the .pyx file)

maartensc commented 4 years ago

I experience the exact same problem (also on Windows). Have you already been able to solve it?

markschatza commented 4 years ago

I've had this same problem and have been able to solve it! What are you using for your Python environment? If you are following the readme and creating an Anaconda env this is what I needed to do to make it work:

1) From Anaconda Navigator go to the environments tab and open a terminal in the your oeEnv using the play button. 2) Then "cd" to your build files and run open-ephys.exe.

I got annoyed needing to do this every time and created this .bat file which does the same thing.

call C:\Users\<user>\Anaconda3\Scripts\activate.bat oeEnv
cd <path to open-ephys.exe>
call conda run open-ephys.exe

I believe the key is using the conda run command. Otherwise windows will open it with your default env. The anaconda terminal seems to do the conda run command for you.

Hope this helps!