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

WTM_SWITCHER output_dir error #50

Closed
papampi opened this issue May 7, 2018 · 4 comments
Closed

WTM_SWITCHER output_dir error #50

papampi opened this issue May 7, 2018 · 4 comments
Assignees

Comments

@papampi
Copy link
Owner

papampi commented May 7, 2018

Tried to test the latest wtm switcher python and it gives me this error:

m1@m1-desktop-101:~$ python2.7 test_wtm 
Traceback (most recent call last):
  File "test_wtm", line 32, in <module>
    outputDir=cfg["output_dir"]
KeyError: 'output_dir'
@LuKePicci
Copy link
Collaborator

LuKePicci commented May 7, 2018

What is the content of WTM.json? Have you passed the full absolute path to that json as first argument?

Should be something like python2.7 WTM_SWITCHER /path/to/WTM.json

@papampi
Copy link
Owner Author

papampi commented May 7, 2018

Content of WTM.json is created by 3main.
tried again with full path:

m1@m1-desktop-101:~$ python2.7 /home/m1/test_wtm /home/m1/WTM.json 
Traceback (most recent call last):
  File "/home/m1/test_wtm", line 32, in <module>
    outputDir=cfg["output_dir"]
KeyError: 'output_dir'

@LuKePicci
Copy link
Collaborator

LuKePicci commented May 7, 2018

Check if your 3main revision is recent enough, at some point in time 3main started writing also that key, if you have no output_dir in the json maybe you're using an old 3main

3main in 19-2.1 branch does it at line 469

@papampi
Copy link
Owner Author

papampi commented May 7, 2018

OK, didnt noticed its been added to 3main.

@papampi papampi closed this as completed May 7, 2018
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