mountainsort_examples icon indicating copy to clipboard operation
mountainsort_examples copied to clipboard

Error in running python example (synthesize_dataset.py)

Open christopherhitz opened this issue 6 years ago • 0 comments

Hi,

I have problems running the Python example synthesize_dataset.py from the mountainsort_examples. I use Anaconda with the Spyder environment setup and run the example file with the command synthesize_dataset('/home/chris/Documents/dataset0000/',M=4,duration=60,average_snr=7,K=20) While debugging, Python enters the function, and runs line 12ff mlp.addProcess('ephys.synthesize_random_waveforms', ... Then, in line 27ff, mlp.addProcess('ephys.synthesize_random_firings', ... the debugger stops with the error message AttributeError: 'NoneType' object has no attribute 'addProcess'

screenshot from 2019-02-26 16-06-26

Thus, the problem might be an wrongly installed package. Here is how I did the installation:

1_ Install MountainLab as indicated in https://github.com/flatironinstitute/mountainlab-js using the conda commands in the Ubuntu terminal.

2_ Install MountainSort as indicated in https://github.com/flatironinstitute/mountainsort_examples/blob/master/README.md using the conda commands in the Ubuntu terminal as well.

These installations seemed to run smoothly.

2_ Additionally, I installed from https://github.com/flatironinstitute / qt-mountainview / mountainsort_examples and / ephys-viz

Every package seemed to be installed fine.

Maybe someone has some ideas. I think, that it is an easy problem, if you are experienced with Ubuntu or Linux in general.

Best,

Chris

christopherhitz avatar Feb 26 '19 15:02 christopherhitz