AlenkaF commented on code in PR #37436:
URL: https://github.com/apache/arrow/pull/37436#discussion_r1311248904


##########
python/pyarrow/__init__.py:
##########
@@ -157,6 +157,15 @@ def print_entry(label, value):
         print(f"  {codec: <20}: {status: <8}")
 
 
+if _sys.platform == 'win32':
+    tzdata_set_path = os.environ.get('PYARROW_TZDATA_PATH', None)
+    if tzdata_set_path:
+        set_timezone_db_path(tzdata_set_path)
+    else:
+        if not 
os.path.exists(os.path.expandvars(r"%USERPROFILE%\Downloads\tzdata")):
+            _warnings.warn('The timezone database is not installed. Timezones 
'+
+                           'will not be available.', RuntimeWarning)

Review Comment:
   Yes, the error message is not very clear right now. WIll try to find a good 
place to add this warning to (to warn only in cases when the functionality that 
needs the tz db is used). 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to