Phoenix icon indicating copy to clipboard operation
Phoenix copied to clipboard

_core.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN13wxWindowIDRef6AssignEi, version WXU_3.2

Open Szirenke opened this issue 1 year ago • 3 comments

Hi,

I am having some issues running wxpython on Ubuntu 22.04. I have now read most of the related issues and none of them helped. I have now installed wxpython in many ways including conda environment with python 3.7. This was the only installation which sort of worked. I write sort of because matplotlib gives an error of singular matrices when I involve axes.axhline. I thought I try a different version and I followed the recipe here at Phoenix and compiled wxpython from source. I could never import wx due to undefined symbol error. (_core.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN13wxWindowIDRef6AssignEi, version WXU_3.2) The weird thing is that using the conda environment on a windows 11 machine with python 3.7 actually works and no matplotlib error is thrown. This is the first time in my life that something worked under windows and didnt under linux. What could cause the above error? I tried to install wxpython with pip but that gives the same error. I tried many of the suggestion around but nothing helped apart from using conda with python 3.7 but that one has a matplotlib bug it seems. The compilation from source finishes without any issues (python3.10) and yet after putting all the proper folders to pythonpath and ld_library_path I get the undefined symbol error. Is there a solution to this?

Thanks

Szirenke avatar Aug 12 '23 21:08 Szirenke

It's unclear why you are getting that error, but we'd need to know a lot more about what you did/how you attempted to compile wxPython.

In any event, if you don't really want to compile wxPython, but just want to install it, probably the easiest way is to use one of the wheels here: https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/

swt2c avatar Aug 14 '23 14:08 swt2c

Hi,

Thanks for the answer! I will try the wheel you shared on my virtual box ubuntu since I moved my "operation" to windows for the moment due to the lack of quick fix. At least on windows I have a working matplotlib as well under conda python 3.7. I will resume with results of the above wheel shortly.

Thanks again

Szirenke avatar Aug 16 '23 11:08 Szirenke