You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/01/06 06:54:00 UTC

[jira] [Commented] (IOTDB-5367) [py] ModuleNotFoundError: No module named 'iotdb.thrift'

    [ https://issues.apache.org/jira/browse/IOTDB-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17655257#comment-17655257 ] 

changxue commented on IOTDB-5367:
---------------------------------

When install with source codes like this:
python3 setup.py install --record install.log

uninstall should be like this:
cat install.log | xargs rm -rf

> [py] ModuleNotFoundError: No module named 'iotdb.thrift'
> --------------------------------------------------------
>
>                 Key: IOTDB-5367
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5367
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Client/Python
>    Affects Versions: 1.0.1
>            Reporter: changxue
>            Assignee: Haonan Hou
>            Priority: Major
>         Attachments: IOTDB-5313.py, image-2023-01-05-17-55-50-155.png
>
>
> [py]insert throws  ModuleNotFoundError: No module named 'iotdb.thrift'
> reproduction:
> 1. pip3 install apache-iotdb
> 2. pip3 uninstall apache-iotdb
> 3. cd iotdb/client-py && python3 setup.py install
> 4. run some python codes of using apache-iotdb
> mac 上结果:
>  !image-2023-01-05-17-55-50-155.png|width=600! 
> 注意 pip list的结果,为什么apache-iotdb 1.0.0 出现了3次,这个也需要解决
> ubuntu 20.04:
> {code}
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File "IOTDB-5313.py", line 13, in <module>
>     session.open(False)
>   File "/root/cx/iotdb-readonly/client-py/iotdb/Session.py", line 150, in open
>     self.set_time_zone(self.__zone_id)
>   File "/root/cx/iotdb-readonly/client-py/iotdb/Session.py", line 1034, in set_time_zone
>     raise RuntimeError("Could not set time zone because: ", e)
> RuntimeError: ('Could not set time zone because: ', TTransportException('Transport not open'))
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)