Parcourir la source

修复import错误

赵小蒙 il y a 1 an
Parent
commit
cd8b2d2c78
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      magic_pdf/spark/s3.py

+ 2 - 1
magic_pdf/spark/s3.py

@@ -6,7 +6,8 @@ import re
 import random
 from typing import List, Union
 try:
-    from app.config import s3_buckets, s3_clusters, get_cluster_name, s3_users
+    from app.config import s3_buckets, s3_clusters, s3_users
+    from app.common.runtime import get_cluster_name
 except ImportError:
     from magic_pdf.config import s3_buckets, s3_clusters, get_cluster_name, s3_users