Quantcast
Viewing all articles
Browse latest Browse all 4398

Not Able to import python packages : throws Error Loading Python Script

I’m not able to import installed Python Packages in Load Python Script activity. It throws error, without the package it runs. And I tried with sys.path.append(os.path.dirname(os.path.abspath(“file”)))
statement and still it throws error. Please look into my code below,

<import sys 
import os
sys.path.append(os.path.dirname(os.path.abspath("__file__")))
import pdf2image
import re
import io

def Hello():
   return 'Hello'
>

Here I need to pdf2image package and it is already installed. Along with that i need to use some more packages. Please help me to fix it

16 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 4398

Trending Articles