Skip to content

Error adding endpoint to TabPy Server on Google Cloud VM Instance #39

@ghost

Description

Hi,

We've been trying to get a TabPy server running on a Google Cloud VM so that we can deploy models from Datalab. I've installed TabPy and the server is running fine - navigating to the ip address in a browser brings up the Tableau logo, and I'm able to connect Tableau to the predictive service and execute python code using the SCRIPT_ functions - however I'm getting an error when using the client to deploy from Datalab.

Using the code:

import tabpy_client
client = tabpy_client.Client('http://{0}:9004/').format(server_ip)

def add(x,y):
    import numpy as np
    return np.add(x, y).tolist()

client.deploy('add', add, 'Adds two numbers x and y')

Brings up the error:

image

I may well have overlooked something in getting it set up as it is working fine locally, but can't work out what's causing it.

Thanks in advance,

Adam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions