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

seldon-cli attr --action apply doesnt pick up the attributes json file #34

Open
shreyas87 opened this issue Dec 23, 2016 · 1 comment
Open

Comments

@shreyas87
Copy link

upon executing the following command in the command line : -
seldon-cli attr --action apply --client-name univision --json attr.json
the following error occurs -
Traceback (most recent call last):
File "/opt/conda/bin/seldon-cli", line 4, in
import('pkg_resources').run_script('seldon==2.1', 'seldon-cli')
File "/opt/conda/lib/python2.7/site-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 719, in run_script
connecting to zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181 [SUCCEEDED]
File "/opt/conda/lib/python2.7/site-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 1504, in run_script
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/EGG-INFO/scripts/seldon-cli", line 5, in
seldon.cli.start_seldoncli()
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/seldon/cli/init.py", line 3, in start_seldoncli
cli_main.main()
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/seldon/cli/cli_main.py", line 355, in main
cmds[cmd](opts,command_data, command_args)
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/seldon/cli/cmd_attr.py", line 250, in cmd_attr
actions[action](command_data, opts)
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/seldon/cli/cmd_attr.py", line 210, in action_apply
store_json(command_data,opts)
File "/opt/conda/lib/python2.7/site-packages/seldon-2.1-py2.7.egg/seldon/cli/cmd_attr.py", line 106, in store_json
f = open(opts.json)
IOError: [Errno 2] No such file or directory: 'attr.json'

the attr.json is present in the working directory
Shreyass-MBP:univision_poc shreyassrinivasan$ pwd
/Users/shreyassrinivasan/seldon/univision_poc
Shreyass-MBP:univision_poc shreyassrinivasan$ ls
attr.json syndication_report_20161215_to_20161223.csv
items.csv
Shreyass-MBP:univision_poc shreyassrinivasan$

@seldondev
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
/lifecycle stale

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