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

won't be able to execute xml2json even after successfully setting up the environment #49

Open
weirditya opened this issue May 6, 2021 · 1 comment

Comments

@weirditya
Copy link

I built the environment successfully, and trying to run the command from directory xmlutils.py
xml2json --input "/sample/logs.xml" --output "/sample/logs.json"

getting this error:

Traceback (most recent call last): File "/home/xalteddev/anaconda3/bin/xml2json", line 33, in <module> sys.exit(load_entry_point('xmlutils==1.4.1', 'console_scripts', 'xml2json')()) File "/home/xalteddev/anaconda3/lib/python3.8/site-packages/xmlutils/console.py", line 109, in run_xml2json parser.add_argument('--input', type=file, dest='input_file', required=True, help='input xml filename') NameError: name 'file' is not defined

@mia2wan
Copy link

mia2wan commented Sep 18, 2023

I built the environment successfully, and trying to run the command from directory xmlutils.py xml2json --input "/sample/logs.xml" --output "/sample/logs.json"

getting this error:

Traceback (most recent call last): File "/home/xalteddev/anaconda3/bin/xml2json", line 33, in <module> sys.exit(load_entry_point('xmlutils==1.4.1', 'console_scripts', 'xml2json')()) File "/home/xalteddev/anaconda3/lib/python3.8/site-packages/xmlutils/console.py", line 109, in run_xml2json parser.add_argument('--input', type=file, dest='input_file', required=True, help='input xml filename') NameError: name 'file' is not defined

I also have the same question as you, has your question been resolved?

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

No branches or pull requests

2 participants