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:01:31 UTC
[iotdb] branch rel/0.11 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 rel/0.11
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.11 by this push:
new 827dc33 fix import errors in Session.py and SessionExample.py
827dc33 is described below
commit 827dc335474eb479d2ed1b98d5f31087a9cf3fa1
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