cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
304 stars 155 forks source link

ImportError: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2: undefined symbol: krb5_ser_context_init, version krb5_3_MIT #1197

Open GoktugAlkan opened 1 year ago

GoktugAlkan commented 1 year ago

Dear community,

I followed the description for the installation of phy. After running the command pip install phy --pre --upgrade in the terminal of my docker image hosted by a ubuntu/linux computer, I got the message that the package phy was successfully installed.

However, when I try to import the packages for the GUI, i.e., when I run the command from phy.apps.template import template_gui, I see the following error:

ImportError: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2: undefined symbol: krb5_ser_context_init, version krb5_3_MIT

When I install the package phy on a virtual machine on my linux computer, which operates with Windows 10, I don't see that error message. However, the virtual machine cannot access the GPU causing empty fields in the GUI. Hence, I strongly wish to use the GUI on my linux computer.

Remark: I am conntected to the ubuntu/linux machine via ssh.

Could you please help me to overcome this error?

Thanks in advance for your effort!

mani-venkatesh commented 1 year ago

Any updates on this error? I have been experiencing the same

Lathomas42 commented 1 year ago

Same with me

GoktugAlkan commented 1 year ago

I could not overcome this problem by using linux. There are .dll files which require Window OS for their execution.

Instead of working on linux, I switched to Windows. You may need to do the following there:

  1. Install Anaconda
  2. Create a new environment
  3. Open a terminal in that new environment
  4. Run the pip install phy --pre --upgrade Here you may face several issues. In my case, I needed to downgrade some packages like spyder and numpy. After doing this, the GUI was working.

If you let me know which errors you see when you are in step 4, I can try to help you further.

reinderdorman commented 1 year ago

Having the same problem on Ubuntu 20.04.6 LTS. Installed latest version of phy2 today, checked if libgssapi_krb5 is up to date, but no luck. Switching to windows is not really a viable option at the moment (with other things on this PC).

Any update would be appreciated!

llobetv commented 10 months ago

I have the same issue, it's probably related to incompatible version of library.

Quick and dirty fix that works for me:

I would probably works to install the same version for each library but i didn't test it.

Hope it will help :)