I'm wanting to setup a simple project with RX python. I'm running python 3.
I've setup my project, and ran pip install rx
which successfully installed rx. I checked this using pip show rx
which printed:
Name: Rx
Version: 1.6.1
Summary: Reactive Extensions (Rx) for Python
Home-page: http://reactivex.io
Author: Dag Brattli
Author-email: dag@brattli.net
License: Apache License
Location: c:\users\info\desktop\projects\tensorflow\venv\lib\site-packages
Requires:
Required-by:
My simple python script looks like:
from rx import Observable
source = Observable.from_(["Alpha", "Beta", "Gamma", "Delta", "Epsilon"])
source.subscribe(lambda value: print("Received {0}".format(value)))
However, I am getting the warning: Cannot find reference 'from_' in 'Observable | Observable'
And at run time the code is bonking out on the line with the method call from_
on it, with the error: TypeError: 'method' object is not subscriptable
Does anyone know what's happening here?