I have a Python API that runs a Queue object defined as:
from queue import Queue
frame_queue = Queue(maxsize = 0)
I run this on a conda environment using conda run command as :
conda run -n my_env python my_api.py
When this command is run on the host it works perfectly, but when it's run on the container (specified on the Dockerfile of the image of the container it logs the following error:
Traceback (most recent call last):
File "queue_api.py", line 13, in <module>
frame_queue = Queue(maxsize = 0)
NameError: name 'Queue' is not defined