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

pyrdp-convert.py fails in Docker container #250

Closed
robeving opened this issue Oct 6, 2020 · 4 comments
Closed

pyrdp-convert.py fails in Docker container #250

robeving opened this issue Oct 6, 2020 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@robeving
Copy link
Contributor

robeving commented Oct 6, 2020

Run these commands

docker pull gosecure/pyrdp:latest
docker run -it gosecure/pyrdp /bin/bash
python3 /pyrdp/bin/pyrdp-convert.py

You get this error, missing dep in container?

Traceback (most recent call last):
  File "/pyrdp/bin/pyrdp-convert.py", line 15, in <module>
    from pyrdp.player.Mp4EventHandler import Mp4EventHandler
  File "/opt/venv/lib/python3.6/site-packages/pyrdp-0.4.2.dev0-py3.6-linux-x86_64.egg/pyrdp/player/Mp4EventHandler.py", line 14, in <module>
    import av
ModuleNotFoundError: No module named 'av'

Also:
ls -l /pyrdp/bin/

The pyrdp-convert script is missing the executable bit.

-rwxr-xr-x 1 root root  6776 Sep 14 18:25 pyrdp-clonecert.py
-rw-r--r-- 1 root root 15459 Sep 14 18:25 pyrdp-convert.py
-rwxr-xr-x 1 root root  1477 Sep 14 18:25 pyrdp-mitm.py
-rwxr-xr-x 1 root root  4004 Sep 14 18:25 pyrdp-player.py
obilodeau added a commit that referenced this issue Oct 7, 2020
Verified if this was a regression and it wasn't the case so I won't make
a CI check for this.

Thanks to @robeving for pointing that out in #250
@obilodeau obilodeau added the bug Something isn't working label Oct 7, 2020
@obilodeau
Copy link
Collaborator

Fixed the missing executable bits in master minutes ago because it was really easy to do.

Investigating the issue, I think I tracked it back to this PR #219 merging the Dockerfile improvements but we merged the pyrdp-convert changes after (although on a timeline it was done before I think). Our requirements.txt file is missing the dependencies.

I'll get to the bug shortly but we should exercise pyrdp-convert in CI as a smoke test too. @Res260 👀 if you have time to kill

@obilodeau obilodeau added this to the vNext milestone Oct 7, 2020
obilodeau added a commit that referenced this issue Oct 7, 2020
* Bump to Ubuntu 20.04 in docker images
* Added back pyav deps to requirements.txt
@obilodeau
Copy link
Collaborator

A candidate fix is available in #251.

@obilodeau
Copy link
Collaborator

Successful regression testing added in #253

obilodeau added a commit that referenced this issue Oct 7, 2020
* Bump to Ubuntu 20.04 in docker images
* Added back pyav deps to requirements.txt
obilodeau added a commit that referenced this issue Oct 7, 2020
@obilodeau
Copy link
Collaborator

A fix was merged minutes ago. Updated images are now available on DockerHub. Feel free to re-open if this doesn't fix your issue. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants