phy icon indicating copy to clipboard operation
phy copied to clipboard

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

Open GoktugAlkan opened this issue 2 years ago • 5 comments

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!

GoktugAlkan avatar Feb 21 '23 09:02 GoktugAlkan

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

mani-venkatesh avatar Mar 03 '23 17:03 mani-venkatesh

Same with me

Lathomas42 avatar Mar 08 '23 17:03 Lathomas42

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.

GoktugAlkan avatar Mar 09 '23 08:03 GoktugAlkan

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!

reinderdorman avatar Mar 22 '23 11:03 reinderdorman

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

Quick and dirty fix that works for me:

  • Download this conda env and extract it: https://mega.nz/file/nwpEwJ4B#TDSDyWyzYIj1aqeDLhKlmT8q8irE9U-bZBqGjwoLIvg
  • launch: conda create -n phy2 --clone path/to/file/extract
  • In ~/miniconda3/envs/phy2/bin/phy change absolute for python pathway to the rightfull one ~/miniconda3/envs/phy2/bin/python

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

Hope it will help :)

llobetv avatar Aug 22 '23 09:08 llobetv