Python Forum
(Path?)Problems with dockerizing a python app
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Path?)Problems with dockerizing a python app
#1
Hi,

I don't know much about Python - haven't used it much yet. I'm trying to dockerize a python 2 app which doesn't seem to be maintained anymore: ham2mon, https://github.com/madengr/ham2mon
I have created a Docker file which should contain everything needed and the container builds fine:
FROM python:2-buster

RUN apt-get update -y
RUN apt-get install gnuradio-dev -y
WORKDIR /usr/src/app

COPY . .

CMD [ "python", "./ham2mon.py" ]
However, when I start it I get an error:
Error:
Traceback (most recent call last): File "./ham2mon.py", line 9, in <module> import scanner as scnr File "/usr/src/app/scanner.py", line 9, in <module> import receiver as recvr File "/usr/src/app/receiver.py", line 9, in <module> from gnuradio import gr ImportError: No module named gnuradio
I think I know enough about Python to recognize that this is some kind of path issue because during the container build process, I can see that gnuradio 3.7.13 is installed, but I don't know how to tackle that. Any help would be greatly appreciated!

-Stefan
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems BrandonKastning 4 6,691 Feb-05-2022, 08:25 PM
Last Post: BrandonKastning
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,215 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  .pth file does not show up in sys.path when configuring path. arjunsingh2908 2 5,775 Jul-03-2018, 11:16 AM
Last Post: arjunsingh2908
  Problem with absolute path to file (Mr.Stickman Problems) SheeppOSU 3 6,243 Jun-26-2018, 10:05 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020