We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Python UDX — Vertica Forum

Python UDX

edited February 2019 in General Discussion

Hi Jim,
I had created a python library and it contains depending site-packages for that I used
CREATE LIBRARY mylib AS '/home/dbadmin/python.py' DEPENDS '/home/dbadmin/mylibs/*' LANGUAGE 'Python';
but it gives me:
ROLLBACK 6222: Depends can specify files only. [/home/dbadmin/mylibs] is not a valid file
I had done it using this URL:: https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Statements/CREATELIBRARY.htm#MultiLevelDependencies

It asking me to add specified file only but I need to add a folder which contains a bunch of files.
Actually, my python.py file had:
from Crypto.Cipher import AES

I got error for this line. Can you please explain me how to resolve this problem. Means how to add this dependent Crypto library to my mylib library

@Jim_Knicely

Comments

  • SruthiASruthiA Administrator

    What is your vertica version? It is a new feature and we support multi level dependencies feature starting vertica 9.2.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file