Comments (4)
SCRIPT_REAL("return tabpy.query('polarity',_arg1)['response']",ATTR([F1])) is more likely to return results if you have a published endpoint named polarity.
Thank you,
Bora
from tabpy.
Hi Bora,
I did publish an end point called polarity, following this tutorial https://github.com/tableau/TabPy/blob/master/client.md). After deploying, i tested that i could reach the end point using the query method in a ipython notebook and ipython on the command line. But when i try to reach the end point from within a calculated field in Tableau, i get the error message in my first post.
I have also tried just directly embedding python script in the calculated field and i get the following error:
An error occurred while communicating with the Predictive Service.
Error processing script
Error when POST /evaluate: Traceback
Traceback (most recent call last):
File "tabpy.py", line 467, in post
result = yield self.call_subprocess(function_to_evaluate, arguments)
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\tornado\gen.py", line 1008, in run
value = future.result()
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\tornado\concurrent.py", line 232, in result
raise_exc_info(self._exc_info)
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\tornado\gen.py", line 1014, in run
yielded = self.gen.throw(*exc_info)
File "tabpy.py", line 488, in call_subprocess
ret = yield future
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\tornado\gen.py", line 1008, in run
value = future.result()
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\concurrent\futures_base.py", line 400, in result
return self.__get_result()
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\concurrent\futures_base.py", line 359, in __get_result
reraise(self._exception, self.traceback)
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\concurrent\futures_compat.py", line 107, in reraise
exec('raise exc_type, exc_value, traceback', {}, locals)
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\concurrent\futures\thread.py", line 61, in run
result = self.fn(*self.args, **self.kwargs)
File "", line 3, in _user_script
File "C:\ProgramData\Anaconda2\envs\Tableau-Python-Server\lib\site-packages\textblob-0.11.1-py2.7.egg\textblob\blob.py", line 344, in init
'must be a string, not {0}'.format(type(text)))
TypeError: Thetext
argument passed to__init__(text)
must be a string, not <type 'NoneType'>
Error type : TypeError
Error message : Thetext
argument passed to__init__(text)
must be a string, not <type 'NoneType'>
Thanks,
Tom
from tabpy.
Three questions
- Were you still getting the error after fixing your calculated field to be
SCRIPT_REAL("return tabpy.query('polarity',_arg1)['response']",ATTR([F1])) - And what addressing/partitioning settings were you using for the table calculation in either scenario (calling the published endpoint and embedding the code into Tableau)?
- What do you see if you drag ATTR(F1) into the view by itself
The issue could be that you are passing a column of Nulls to Python because ATTR() returns *.
from tabpy.
Looks like you were right, when i dragged ATTR(F1) onto the sheet and then the calculated fields, it worked fine. Pardon my user error and thanks for your help.
from tabpy.
Related Issues (20)
- An error occurred while communicating with the Analytics Extension data source ‘Analytics Extension’ HOT 1
- TabPy on Heroku Quickstart runs on port 443 HOT 3
- Simplify Environment Setup with a package.json file
- Clarify community contributions
- Fail to install TabPy due to the deprecation of sklearn HOT 2
- TabPy offline installation HOT 2
- Remove future lib: https://nvd.nist.gov/vuln/detail/CVE-2022-40899
- Erorr when run TabPy server on Ubuntu HOT 2
- Can we use tabpy function even if TABPY_EVALUATE_ENABLE is set to false HOT 3
- Heroku model deployments: os.path.isfile(path_to_pickle) returns true, but client.deploy(...) returns FileNotFoundError HOT 2
- Input form from https://www.tableau.com/blog/building-advanced-analytics-applications-tabpy-64916
- Disable support for TLS 1.1 and 1.0
- Tabpy server awaits for the user to hit Enter on the tabpy server Console for the Tableau connection to establish/finish HOT 1
- System error: Unknown Error when setting up request to TabPy. null
- Issue: PyArrow Installation Error in Visual Studio Developer Command Prompt for TabPy
- Tableau Prep - Unwanted Date Change in Python script HOT 4
- TabPy初期設定時のユーザーネーム/パスワードの設定方法について
- Hardcoded `0.0.0.0` and lack of passing `address` to Tornado
- No able to open Tabpy from cmd
- Potential Information Leakage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabpy.