Getting error Python is not properly initialized on script task

More
3 years 5 months ago - 3 years 5 months ago #22268 by tahmad
Information 1/11/2023 6:19:50 PM Preparing to execute: pythontest
Information 1/11/2023 6:19:50 PM Started
Information 1/11/2023 6:19:50 PM Executing:pythontest
Information 1/11/2023 6:19:50 PM Executing Script:Is Graphical Format
Information 1/11/2023 6:19:50 PM import etltools, os
from PIL import Image

cf = etltools.GetVariable('<FileName>')
ext = os.path.splitext(cf)[-1]

etltools.SetVariable('<ExtValue>',ext)

flag = 1
if ext in ('.jpg','.png','.gif','.tif','.tiff','.bmp','.jpeg'):
flag = 0
etltools.WriteToLog('graphical formats')
else:
etltools.WriteToLog('graphical formats')





Result.Value = flag
Information 1/11/2023 6:19:50 PM Executing:Is Graphical Format
Error 1/11/2023 6:19:52 PM Following Error happened: Python is not properly initialized
Error 1/11/2023 6:19:52 PM Failed
Last edit: 3 years 5 months ago by tahmad.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #22274 by admin
have you installed it for all users?
www.etl-tools.com/wiki/knowledgebase/tips/working-with-python/
Which version of python have you got?

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save