enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

Installation build error #1122

Open Qcellaris opened 2 years ago

Qcellaris commented 2 years ago

Dear developer,

I have used Mayavi in the past on Ubuntu 20.04 with python 3.9.9 and it worked perfectly fine, but now I'm trying to install it on an Ubuntu 18.04 machine with python 3.9.9 without success. I have tried it with VTK 9.0.2, 9.0.3 and 9.1. Could someone help me figure out what is going on here? I have attached the error log.

Best,

Error_log.txt

stamatiad commented 2 years ago

It seems this is an issue with setuptools https://github.com/pypa/setuptools/issues/2849. I'm investigating. I don't get the same error as you, but updating to setuptools 60.6.0 seems let the pip install finish without hiccups (I'm on python 3.9.5).

Qcellaris commented 2 years ago

Thanks for your reply. I have updated setuptools but I am still running into more or less the same error. I have attached the new error log.

error-log.txt

prabhuramachandran commented 2 years ago

This looks like a problem with your default encoding. I find that setting export LC_ALL=C or something suitable for your specific locale and then running pip install mayavi should fix the problem. I am not sure if this is a setuptools issue or something else as I don't think Mayavi has really changed anything in this regard.

Qcellaris commented 2 years ago

Dear Prabhu,

That solved the issue indeed! I'm also not sure if this is something related to setuptools or something else, but I know that this issue did not occur when I installed Mayavi on Ubuntu 20.04. Therefore, I guessed it had to do with the operating system version itself and the locale settings that it used to set by default. I just checked the default locale settings of my machines (Ubuntu 18.04 and Ubuntu 20.04) and to my surprise they are both exactly the same. I do remember that installing Mayavi on Ubuntu 20.04 gave rise to another issue:

Could not load the Qt platform plugin "xcb" in "" even though it was found.

This was resolved by: sudo apt install libxcb-xinerama0

Maybe these issues are related somehow and export LC_ALL=C also works for installing Mayavi on Ubuntu 20.04 without reinstalling libxcb-xinerama0. I will try this next week and I will keep you posted. Anyway, thanks for your solution. This works for me!

Best,

Stephan