-
Notifications
You must be signed in to change notification settings - Fork 604
Closed

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:
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
Labels
No labels