lavavu/LavaVu

Installation issues

Closed this issue · 5 comments

Hi, OKaluza
I tried to install lavavu via pip install lavavu, but could not succeed. The installation log is attached.
I have installed the required libraries via sudo apt install build-essential libgl1-mesa-dev libx11-dev zlib1g-dev
lavau_log_1.txt

Hi @tyszwh, there seem to be a couple of issues, as both the binary install and source build failed.
It looks like you're running linux with miniconda and python 3.10 is that right? Which operating system version are you running?
If you could run these commands and attach the output it would be really helpful to try and debug the issue finding a compatible binary install:

uname -a
pip debug --verbose

To fix the issue building from source we seem to be missing the OpenGL dev package, which provides GL/gl.h, this should have been provided by the packages you have installed but perhaps things have changed since I wrote the install guide, try installing these packages:

sudo apt-get install libgl-dev mesa-common-dev libgl1-mesa-dev

Hi, Okaluza
Yes, I'm running Linux with miniconda and python 3.10.
the operating system version is
Linux ubuntu 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

and the attached file is output via pip debug --verbose
edition.txt

I have reinstall the packages via sudo apt-get install libgl-dev mesa-common-dev libgl1-mesa-dev But the problem remains.

Because of your older Ubuntu version I think perhaps the latest version is not supported on your system without updating, as the manylinux_2_28 wheels need a more recent version of glibc, but according to your pip output, there are compatible versions available, what if you try pip install lavavu==1.8.45 ?
I tried in a docker image and I was able to both install from a binary wheel and source as follows

docker run -i -t ubuntu:18.04 /bin/bash
$ apt update
$ apt-get install wget
$ wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.10.0-1-Linux-x86_64.sh
$ bash Miniconda3-py310_23.10.0-1-Linux-x86_64.sh 
$ cd ~
$ source miniconda3/bin/activate 

#Install from wheel (previous version)
$ pip install lavavu==1.8.45

#Install from source (latest version)
$ apt-get install libgl-dev mesa-common-dev libgl1-mesa-dev build-essential
$ pip install lavavu
(builds from source successfully)

Ok, pip install lavavu==1.8.45 works fine.
The problem seems to be related to conda conflicts. I have created a new Python environment as you and the latest version can be installed correctly.
Attached file is the conda list of the two environments ,the main difference is that gcc_linux-64 gxx_linux-64 gfortran_linux-64 is installed via conda.
Problem.txt
Correct.txt

Hmm interesting, thanks for narrowing down the difference, I had a go at duplicating the problem but I can't seem to get it to break on my system. It doesn't make much sense to me - that version of gcc is the same as I have on my system and should work fine, but I have to give up for now.

Anyway, as it seems you are up and running I'll close this, let me know if there are any more issues.