Code Monkey home page Code Monkey logo

Comments (8)

BBeran avatar BBeran commented on May 25, 2024 1

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

from tabpy.

Seiter02 avatar Seiter02 commented on May 25, 2024

This makes deploying to TabPy server running in docker containers impossible as well. Feature request +1

from tabpy.

afreeland avatar afreeland commented on May 25, 2024

Believe I am running into this with a docker image as well. Does this mean that if we
pip install tabpy-client future from an integrated terminal inside the tabpy server container that it should work? Not quite sure in what context local needs to be (server or client)...

I tried, with the example from above directly in a file in the container

import tabpy_client
client = tabpy_client.Client('http://localhost:9004/')

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

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

However, I get an error

RuntimeError: LoadFailed: u"Load failed: 'int' object is not iterable"

from tabpy.

Seiter02 avatar Seiter02 commented on May 25, 2024

Yeah, it will work inside the container if you mount the file from the host.

The error you are seeing with the number not being iterable is something else unrelated to docker or localhost clients, but more likely related to the versions of python/numpy you are using in your image.

from tabpy.

afreeland avatar afreeland commented on May 25, 2024

@Seiter02 I am new to TabPy, can you provide a sample of what file needs to be mounted in the host? When I was looking the staging folder and such never existed.

Using this version of python
Python 2.7.12 :: Continuum Analytics, Inc

Looks like numpy wasnt installed...but now it is

pip install numpy
python -c "import numpy; print(numpy.version.version)"
# 1.14.1

Still same error, will continue looking through it

Using this Docker Image and this Dockerfile

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

Hi @afreeland,

Are you still experiencing this issue?

from tabpy.

afreeland avatar afreeland commented on May 25, 2024

@nmannheimer I ended up not continuing with TabPy because we had a large datasets and Tableau executes the script calculated field requests synchronously which didnt allow us to scale the way we needed...sorry can't help much

from tabpy.

nmannheimer avatar nmannheimer commented on May 25, 2024

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

from tabpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.