Issue with python not finding Input File in Podman #26772
Unanswered
budhabanerjee
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have opened a podman container for python 3.12 using the following command line:
C:\Users\banerjee\Work\Migration_SCS_Signer\Py3_SCSSigner_2.0.0\2.0.0>podman run -it -v .:/home python:3.12 bash
Inside, when I try to execute the following command, it gives me the following error:
**_root@0f3b15436a56:/home/scssigner# python main.py -d -i /home/a.xml
2025-08-07 14:14:30,312 [INFO] init() @main.py:145 -- Verbosity level: VERBOSE
Usage: python Main.py [options]
main.py: error: Input file does not exist: /home/a.xml
root@0f3b15436a56:/home/scssigner#_**
The file 'a.xml' does exist and i can find it using 'ls'.
The code in the 'main.py' file where the error comes from is as follows:
inputFilePath = normpath(abspath(self.inputFilePath))
if (not access(inputFilePath, F_OK)):
parser.error('Input file does not exist: %s' % self.inputFilePath)
It seems to me (I am new to 'container') that maybe the mount path in Podman is somehow the issue but I can't figure out how to solve this. I would appreciate any help on this.
Beta Was this translation helpful? Give feedback.
All reactions