Forum

Author Topic: Standalone version needs libGL.so  (Read 2302 times)

EE

  • Newbie
  • *
  • Posts: 26
    • View Profile
Standalone version needs libGL.so
« on: January 04, 2021, 03:06:26 PM »
Code: [Select]
FROM python:3

RUN wget https://s3-eu-west-1.amazonaws.com/download.agisoft.com/Metashape-1.7.0-cp35.cp36.cp37.cp38-abi3-linux_x86_64.whl

RUN python3 -m pip install Metashape-1.7.0-cp35.cp36.cp37.cp38-abi3-linux_x86_64.whl

SHELL ["/bin/bash", "-c"]

CMD 'python3'

Running `import Metashape` in the previously specified docker container results in
Code: [Select]
>>> import Metashape
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/Metashape/__init__.py", line 3, in <module>
    from .Metashape import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14840
    • View Profile
Re: Standalone version needs libGL.so
« Reply #1 on: January 13, 2021, 08:12:20 PM »
Hello EE,

Can you please specify, which OS version/distribution you are using?

If you are using 20.04, please check, if the following package installation solves the problem:
Code: [Select]
sudo apt install libgl1
Best regards,
Alexey Pasumansky,
Agisoft LLC

EE

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Standalone version needs libGL.so
« Reply #2 on: January 25, 2021, 02:45:47 PM »
The environment is `Linux d24600ff409b 4.19.121-linuxkit #1 SMP Tue Dec 1 17:50:32 UTC 2020 x86_64 GNU/Linux`

That does indeed solve it. Is this requirement specified somewhere?

Is `libglu1` also fine? What is the difference with `libgl1`?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14840
    • View Profile
Re: Standalone version needs libGL.so
« Reply #3 on: January 25, 2021, 07:23:59 PM »
Hello EE,

libglu depends on libgl, therefore libgl would be automatically installed upon libglu installation and should work as expected.
Best regards,
Alexey Pasumansky,
Agisoft LLC