Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libGL.so.1: cannot open shared object file: No such file or directory #138

Closed
kweik opened this issue Jul 24, 2019 · 6 comments
Labels

Comments

@kweik
Copy link

kweik commented Jul 24, 2019

How to reproduce:
Build Dockerfile from the latest source, run it.

Can be fixed installing libgl1-mesa-glx in Dockerfile

RUN apt install libgl1-mesa-glx

I don't know is it necessary to use this lib.
0.2.0 release works just fine

@Res260
Copy link
Collaborator

Res260 commented Jul 30, 2019

thanks for your report! Feel free to open a PR if you'd like :)

@obilodeau
Copy link
Member

He is right, I'm able to reproduce:

$ docker run -v $PWD/pyrdp_output:/home/pyrdp/pyrdp_output pyrdp pyrdp-mitm.py -l 3390 127.0.0.1:3389
Traceback (most recent call last):
  File "/usr/local/bin/pyrdp-mitm.py", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/pyrdp/bin/pyrdp-mitm.py", line 33, in <module>
    from pyrdp.mitm import MITMConfig, RDPMITM
  File "/pyrdp/pyrdp/mitm/__init__.py", line 8, in <module>
    from pyrdp.mitm.RDPMITM import RDPMITM
  File "/pyrdp/pyrdp/mitm/RDPMITM.py", line 26, in <module>
    from pyrdp.mitm.FastPathMITM import FastPathMITM
  File "/pyrdp/pyrdp/mitm/FastPathMITM.py", line 11, in <module>
    from pyrdp.player import keyboard
  File "/pyrdp/pyrdp/player/__init__.py", line 7, in <module>
    from pyrdp.player.BaseTab import BaseTab
  File "/pyrdp/pyrdp/player/BaseTab.py", line 10, in <module>
    from PySide2.QtWidgets import QScrollArea, QTextEdit, QVBoxLayout, QWidget
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

obilodeau added a commit that referenced this issue Nov 3, 2019
Fix for PySide2 QT missing libGL.so.1 error (fixes #138)
joshuagetega added a commit to fasrc/fas-ondemand-jupyter-app that referenced this issue Aug 20, 2020
When importing the package "opencv", you get the error "ImportError: libGL.so.1: cannot open shared object file: No such file or directory". According to GoSecure/pyrdp#138, installing libgl1-mesa-glx may be a potential fix.
@nitishhrms
Copy link

My issue is not solving by installing this what to do

@alxbl
Copy link
Collaborator

alxbl commented Aug 31, 2020

If you are building the docker image and running in the docker container, it should work. Are you running it on your system directly?

Also we'll need more information if you want us to re-open/investigate your issue.

  • Docker version
  • Commands you used to install
  • Commands you use to run PyRDP
  • PyRDP callstack

Thanks

@kasmiii
Copy link

kasmiii commented Feb 2, 2021

how to install libgl1-mesa-dev library in windows???

@obilodeau
Copy link
Member

Windows installation instructions are here: https://github.com/GoSecure/pyrdp#installing-on-windows. Are you getting a specific error regarding libgl1-mesa-dev? If so, can you post it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants