Skip to content
This repository was archived by the owner on Mar 6, 2019. It is now read-only.
This repository was archived by the owner on Mar 6, 2019. It is now read-only.

Unable to import module 'handler': No module named 'magpie' #1

@sachaarbonel

Description

@sachaarbonel

After deploy when you try to invoke the lambda function like this:

serverless invoke -f predict --data '{"text":"Stephen Hawking studies black holes"}' --log

You'll get this error:

Unable to import module 'handler': No module named 'magpie'

A possible solution add:

from __future__ import absolute_import

on top of init.py of the magpie package

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions