You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/26 14:03:11 UTC

[iotdb] branch master updated: fix import errors in Session.py and SessionExample.py

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new f9a972d  fix import errors in Session.py and SessionExample.py
f9a972d is described below

commit f9a972d767023efbda505f2c781123cc94292810
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Thu Nov 26 22:01:03 2020 +0800

    fix import errors in Session.py and SessionExample.py
---
 client-py/src/SessionExample.py | 3 ++-
 client-py/src/iotdb/Session.py  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/client-py/src/SessionExample.py b/client-py/src/SessionExample.py
index 9eac78f..697d075 100644
--- a/client-py/src/SessionExample.py
+++ b/client-py/src/SessionExample.py
@@ -19,7 +19,8 @@
 # Uncomment the following line to use apache-iotdb module installed by pip3
 
 from iotdb.Session import Session
-from iotdb.utils import Tablet
+from iotdb.utils.Tablet import Tablet
+from iotdb.utils.IoTDBConstants import *
 
 # creating session connection.
 ip = "127.0.0.1"
diff --git a/client-py/src/iotdb/Session.py b/client-py/src/iotdb/Session.py
index 839ba95..00186ec 100644
--- a/client-py/src/iotdb/Session.py
+++ b/client-py/src/iotdb/Session.py
@@ -20,7 +20,8 @@ import struct
 import sys
 import time
 
-from .utils import SessionDataSet
+from .utils.SessionDataSet import SessionDataSet
+from .utils.IoTDBConstants import *
 
 from thrift.protocol import TBinaryProtocol, TCompactProtocol
 from thrift.transport import TSocket, TTransport