scratcharchive / mountainsort_examples

Examples of using MountainSort spike sorting software.
27 stars 20 forks source link

Error running example #25

Closed holmescharles closed 5 years ago

holmescharles commented 5 years ago

Hi! I have set up mountainsort and ephys-viz as per https://github.com/flatironinstitute/mountainsort_examples. I then made the sample dataset with "synthesize_dataset.sh", but when I try to look at the data with ev-dataset dataset, an error is raised:

/data/code/python/miniconda3-chuck/envs/mount2/lib/node_modules/ephys-viz/node_modules/electron/dist/electron: symbol lookup error: /data/code/python/miniconda3-chuck/envs/mount2/lib/node_modules/ephys-viz/node_modules/electron/dist/../../../../../libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

Any idea what the issue is? Thanks

ucnsgy commented 5 years ago

libfontconfig.so.1 links to libfontconfig.so.1.12.0 in the mountainlab lib directory (in your case this is /data/code/python/miniconda3-chuck/envs/mount2/lib/)

depending on your build/version of linux and libfontconfig, libfontconfig.so.1.12.0 may not be pointing to the correct freetype library

i fixed this for myself by updating libfontconfig, copying the latest version of the libfontconfig.so.1.X.0 file to my mountainlab lib directory, and re-linking libfontconfig.so.1 to it.

if you are using Ubuntu, this would look something like this

sudo apt-get install libfontconfig1 cp /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.10.1 /data/code/python/miniconda3-chuck/envs/mount2/lib/. (your lib directory may be different, and libfontconfig.so.1.10.1 may be different) cd /data/code/python/miniconda3-chuck/envs/mount2/lib/ rm libfontconfig.so.1 ln -s libfontconfig.so.1.10.1 libfontconfig.so.1 (again, libfontconfig.so.1.10.1 may be different, ie- libfontconfig.so.1.12.1)

hope that helps

holmescharles commented 5 years ago

Thanks!

On Mon, Oct 21, 2019 at 3:07 PM ucnsgy notifications@github.com<mailto:notifications@github.com> wrote:

libfontconfig.so.1 links to libfontconfig.so.1.12.0 in the mountainlab lib directory (in your case this is /data/code/python/miniconda3-chuck/envs/mount2/lib/)

depending on your build/version of linux and libfontconfig, libfontconfig.so.1.12.0 may not be pointing to the correct freetype library

i fixed this for myself by updating libfontconfig, copying the latest version of the libfontconfig.so.1.X.0 file to my mountainlab lib directory, and re-linking libfontconfig.so.1 to it.

if you are using Ubuntu, this would look something like this

sudo apt-get install libfontconfig1 cp /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.10.1 /data/code/python/miniconda3-chuck/envs/mount2/lib/. (your lib directory may be different, and libfontconfig.so.1.10.1 may be different) cd /data/code/python/miniconda3-chuck/envs/mount2/lib/ rm libfontconfig.so.1 ln -s libfontconfig.so.1.10.1 libfontconfig.so.1 (again, libfontconfig.so.1.10.1 may be different, ie- libfontconfig.so.1.12.1)

hope that helps

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/flatironinstitute/mountainsort_examples/issues/25?email_source=notifications&email_token=AAPFRL5NXLRKDX6UYS2TF4DQPYDX3A5CNFSM4JDEBOX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB3TZ6I#issuecomment-544685305, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAPFRLZORBJZSIRIJRSEUVTQPYDX3ANCNFSM4JDEBOXQ.