Submit your use case or success story to the 2023 edition of the Dataiku Frontrunner Awards ENTER YOUR SUBMISSION

unable to install plugin via Python Api

Level 1
unable to install plugin via Python Api

I'm Trying to install a plugin through running this python code on dataiku server and i'm getting error of  

DataikuException: java.lang.Exception: Could not install the plugin

this is the code

import dataikuapi

import urllib3


apiKey = [removed]
client = dataikuapi.DSSClient(host, apiKey)
client._session.verify = False
with open("/busdata/", "r", encoding='latin1') as f:

⚠️PS: if i remove encoding='latin1'
I get error 
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 11: invalid start byte

Operating system used: Centos
0 Kudos
1 Reply
Level 2


Contrary to what appears in the doc:


with open("", "r") as f:


You should use rb (read bytes) to read the archive correctly and have it installed in the instance:


with open("", "rb") as plugin:


I tested it, works fine in version 11.2.



0 Kudos