IBMStreams / streamsx.topology

Develop streaming applications for IBM Streams in Python, Java & Scala.
http://ibmstreams.github.io/streamsx.topology
Apache License 2.0
29 stars 43 forks source link

[Python] Pip installed packages are not copied into the bundle. #308

Closed ddebrunner closed 8 years ago

ddebrunner commented 8 years ago

I tried an example using TwitterAPI where there were two "application modules"

streamsapp.py - contained the topology calls and imported streamsmodules to use a callable

streamsmodules.py - contained the callable and imported TwitterAPI

Running the bundle has TwitterAPI module not found.

ddebrunner commented 8 years ago

Not clear from the SPLDOC what should happen in this case.

henrychi2 commented 8 years ago

Must-fix for alpha

henrychi2 commented 8 years ago

I was able to install TwitterAPI and recreate the issue. With changes in pull request #313, I manually inspected the .sab and can see that TwitterAPI and other dependent packages are copied.

ddebrunner commented 8 years ago

Verified, with #313 and #319 the twitter api and dependencies were copied into the bundle, actually 297 extra files were included.

I ran a standalone bundle:

and it worked.