You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/06/07 11:43:47 UTC
[GitHub] massakam opened a new pull request #1930: Make Python code work
with Pulsar Function localrun
massakam opened a new pull request #1930: Make Python code work with Pulsar Function localrun
URL: https://github.com/apache/incubator-pulsar/pull/1930
### Motivation
In master code, the following error occurs when running python code with Pulsar Function in localrun mode.
```
Traceback (most recent call last):
File "/home/massakam/git/pulsar/pulsar-functions/runtime/target/python-instance/util.py", line 60, in import_class_from_path
mod = __import__(classname_path, fromlist=[class_name], level=-1)
ImportError: No module named serde
```
I think it is because the paths of py files have been changed by https://github.com/apache/incubator-pulsar/pull/1893.
### Modifications
Fixed the path from which util.py imports classes.
### Result
Pulsar Function localrun will work properly.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services