Coder Social home page Coder Social logo

Comments (10)

mirekphd avatar mirekphd commented on August 15, 2024 7

I still run into this issue in 2020, with TabPy client saving the deployed function into its own container's local path and TabPy server attempting to find the function it is own container (which results in error 500).

The only solution indeed seems to be - as suggested by @jstrauss18 to expose the shared location (in our case: persistent volume claim) that both client and server containers can see. Since the volume will be in the same Openshift namespace, the functions and other pickles will be exposed only to a single user running both client and server containers in the same namespace (so no security problems here).

Edit: I can confirm that it worked (client-server file exchange via shared storage), but tabpy was unable to create a folder in which it tries to initialize its .ini file... surely not ensuring the folder exists before creating the .ini file is a bit of a bug. So the .ini file had to be manually created first in the shared location and then deploying functions to "remote" tabpy server from jupyter notebook started to work.

from tabpy.

 avatar commented on August 15, 2024 2

Looks to be the same underlying issue as #35. TabPy client can currently only deploy when it is being run on the same machine is TabPy Server - You cannot publish from one client machine to a different server machine.

from tabpy.

Proteusiq avatar Proteusiq commented on August 15, 2024

I experienced this. Deploying a test function from Windows 7 to TabPy in Linux server gives:

ResponseError: (500) error adding endpoint "OSError : [Errno 2] No such file or directory: '/usr/local/lib/python2.7/site-packages/tabpy_server/staging\\endpoints\\exp\\1'"

Linux syntax expect /endpoint/Functionmade/VersionNo but it is receiving Windows syntax \endpoint.

from tabpy.

jstrauss18 avatar jstrauss18 commented on August 15, 2024

Has any progress been made on this issue? I ran into this error today trying to deploy from my local machine to tabpy_server.

tabpy_client.rest.ResponseError: (500) error adding endpoint "FileNotFoundError
: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\
\Python35S\\Lib\\site-packages\\tabpy_server\\staging\\endpoints\\a
dd2\\1'"

from tabpy.

 avatar commented on August 15, 2024

@JeffStrauss18, If you are trying to deploy from one machine to another, that currently will not work with the existing code.

from tabpy.

joshua-barber avatar joshua-barber commented on August 15, 2024

@SlewT Any idea of whether that kind of remote deployment is planned in future? And/or any suggestions on a multi-user workflow without everyone doing all development on the same machine?

from tabpy.

jstrauss18 avatar jstrauss18 commented on August 15, 2024

I have a thought how to do this as a workaround. But I haven't fully designed / implemented it yet.

  1. Data scientists will save their Python predictive algorithms onto a share drive that resides locally on the host that TabPy runs.
  2. A batch utility will be created that has the tabpy_client.connect, pulls in the business algorithms that has been recently updated on the file share, and has the tapy_client.deploy. The utility will run perhaps every 5 minutes.

from tabpy.

 avatar commented on August 15, 2024

@joshua-barber, I'm not sure if Tableau has it on their roadmap. I haven't seen much about what their plans are. I'm sure someone will release a version (or a patch) if Tableau doesn't fairly soon - it's needed. I plan on having a working version before too long. Primarily just finishing up an authentication piece I want in place for it and potentially the ability to make sure individuals don't overwrite other's endpoints.

We don't yet have this implemented in our environment as we will need the remote publishing, ability to login, and a couple of other features before it will be set up in anything other than a test environment. If we would implement a workflow in the current state, it would probably be something like what @JeffStrauss18 mentioned except that we would likely have a couple of individuals who did the publishing after reviewing the code and testing it in a non-production server environment before it went to the prod platform.

from tabpy.

nmannheimer avatar nmannheimer commented on August 15, 2024

Hello All,
This is a known issue that has been added to our backlog for TabPy. While we are currently working on adding secured connectivity to TabPy, we are aware of the need for this request as well.

from tabpy.

jstrauss18 avatar jstrauss18 commented on August 15, 2024

In reference to my comment from way back on Feb 21, it's now implemented.

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.