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

streamsx-sc should not require a namespace to be provided for compilation #2285

Closed
natashadsilva opened this issue Oct 8, 2019 · 4 comments

Comments

@natashadsilva
Copy link
Member

I can compile a main composite using Atom or Studio without requiring a namespace but with streamsx-sc I get this error:

streamsx-sc -M SubscribeToBusLocations
Traceback (most recent call last):
File "//anaconda/envs/py36/bin/streamsx-sc", line 10, in
sys.exit(main())
File "//anaconda/envs/py36/lib/python3.6/site-packages/streamsx/scripts/sc.py", line 29, in main
topo = _create_topo(cmd_args)
File "//anaconda/envs/py36/lib/python3.6/site-packages/streamsx/scripts/sc.py", line 318, in _create_topo
topo,invoke = main_composite(kind=cmd_args.main_composite)
File "//anaconda/envs/py36/lib/python3.6/site-packages/streamsx/spl/op.py", line 476, in main_composite
raise ValueError('Main composite requires a namespace qualified name: ' + str(kind))
ValueError: Main composite requires a namespace qualified name: SubscribeToBusLocations

@natashadsilva natashadsilva changed the title streamsx-sc should not requires a namespace to be provided for compilation streamsx-sc should not require a namespace to be provided for compilation Oct 8, 2019
@ddebrunner
Copy link
Member

streamsx-sc was designed mainly for DevOps use and in that case applications should be using a namespace. Not having a namespace is only suitable for quick test apps, not production or reusable apps.

@ghost ghost self-assigned this Mar 13, 2020
@markheger
Copy link
Member

markheger commented Mar 19, 2020

Remark:

streamsx-runner requires a namespace for the main composite:
See "Warning": https://streamsxtopology.readthedocs.io/en/v1.14.11/scripts/runner.html#spl-applications

Currently the behavior is consistent between streamsx-sc and streamsx-runner.

markheger pushed a commit that referenced this issue Mar 27, 2020
Allow main composites w/o SPL namespace to compile, issue #2285
@ghost
Copy link

ghost commented Mar 27, 2020

This issue will be resolved only for the command line tools streamsx-sc and streamsx-runner, but not for the topology Python API streamsx.spl.op.main_composite(kind, toolkits, name).

@markheger
Copy link
Member

released in 1.14.12

markheger pushed a commit to markheger/streamsx.topology that referenced this issue Apr 6, 2020
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

3 participants