question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error adding endpoint to TabPy Server on Google Cloud VM Instance

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BBerancommented, Jun 15, 2017

Currently TabPy only supports deploying to local file paths. So this is not a bug, it is a feature request 😃

0reactions
nmannheimercommented, Jun 27, 2018

@afreeland thanks for the information, that’s useful for us to know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting response errors - OpenAPI - Google Cloud
This page describes how to troubleshoot errors that you receive in a response from a request to your API. BAD_GATEWAY. If you receive...
Read more >
Connect Tableau To Gcp Compute Instance ... - ADocLib
Step 5: Publish data to Tableau Server on your Google Compute Engine VM. ... Error adding endpoint to TabPy Server on Google Cloud...
Read more >
Troubleshooting Tableau Server on the Google Cloud Platform
In the GCP Compute Engine console, make sure that you've configured an endpoint to allow HTTP traffic to the instance. You receive the...
Read more >
Connect Tableau to GCP Compute Instance running TabPy
To access your VM from the internet on port 9004, you'd need to: Create a new firewall rule allowing incoming traffic on 9004...
Read more >
Tableau Prep Help - BI Consult
Add or embed credentials for cloud connectors when publishing your flow ... Configure the Tableau Python (TabPy) server for Tableau Server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found