Hi,
I'm an IBMer at research and I need to build a demo in Python using Streams. I am new to Streams and learning it by following the samples provided on your website. I tried to follow the following example code, but I ended up with "ValueError: STANDALONE must be submitted when an IBM Streams install is present." I'd like to know what is the minimum requirement for running the following code on windows 10 and how to make it work. Could you please shed some light on this?
Sample code:
from streamsx.topology.topology import Topology
import streamsx.topology.context
def words_in_dictionary():
return {"qualify", "quell", "quixotic", "quizzically"}
def does_not_contain_a(tuple):
return "a" not in tuple
def main():
topo = Topology("filter_words")
words = topo.source(words_in_dictionary)
words_without_a = words.filter(does_not_contain_a)
words_without_a.for_each(print)
streamsx.topology.context.submit("STANDALONE", topo)
if __name__ == '__main__':
main()
Note that I installed the streamsx package, and tried to run the sample code from within PyCharm.
Regards,
Xiping
#OpenSourceOfferings#Streams#Support#SupportMigration