You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/05/24 02:55:56 UTC

[GitHub] [iotdb] lizhenwei opened a new issue, #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

lizhenwei opened a new issue, #5999:
URL: https://github.com/apache/iotdb/issues/5999

   **Describe the bug**
   A clear and concise description of what the bug is.
   python run SessionExample.py failed.throw error
   ``` 
   Traceback (most recent call last):
     File "D:/lzwprogram/loadtest/iotdbtest/SessionExample.py", line 188, in <module>
       np.array([False, True, False, True], TSDataType.BOOLEAN.np_dtype()),
   AttributeError: 'TSDataType' object has no attribute 'np_dtype'
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. copy https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py into local folder
   2. pip install numpy==1.21.6 apache-iotdb==0.13.0.post1
   3. python run SessionExample.py
   4. See error
   


-- 
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: reviews-unsubscribe@iotdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] HTHou commented on issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

Posted by GitBox <gi...@apache.org>.
HTHou commented on issue #5999:
URL: https://github.com/apache/iotdb/issues/5999#issuecomment-1135363517

   Hi, `np_dtype` in TSDataType is added in master branch, which should not be in 0.13.0 version. You can try the test 0.14.0 version of py-client from https://test.pypi.org/project/apache-iotdb-test/ . It is compatible with 0.13.0 IoTDB server.


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] HTHou commented on issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

Posted by GitBox <gi...@apache.org>.
HTHou commented on issue #5999:
URL: https://github.com/apache/iotdb/issues/5999#issuecomment-1135367692

   For the current 0.13.0 python client, you can refer the SessionExample below.
   https://github.com/apache/iotdb/blob/v0.13.0/client-py/SessionExample.py
   https://github.com/apache/iotdb/blob/4f985dd6dd7d1deb47359f27f10e84248490f837/client-py/SessionExample.py#L180-L187


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] lizhenwei commented on issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

Posted by GitBox <gi...@apache.org>.
lizhenwei commented on issue #5999:
URL: https://github.com/apache/iotdb/issues/5999#issuecomment-1135372562

   thank you,
   I fix it by this command:
   ```
   pip install -i https://test.pypi.org/simple/ apache-iotdb-test==0.14.0.1
   ```
   
   > Hi, `np_dtype` in TSDataType is added in master branch and 0.13.1, which should not be in 0.13.0 version. You can try the 0.14.0 test version of py-client from https://test.pypi.org/project/apache-iotdb-test/ . It is compatible with 0.13.0 IoTDB server.
   thank you 
   I fix it by this command
   
   


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] github-actions[bot] commented on issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #5999:
URL: https://github.com/apache/iotdb/issues/5999#issuecomment-1135345310

   Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] lizhenwei closed issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'

Posted by GitBox <gi...@apache.org>.
lizhenwei closed issue #5999: AttributeError: 'TSDataType' object has no attribute 'np_dtype'
URL: https://github.com/apache/iotdb/issues/5999


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org