You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "pyh1998 (via GitHub)" <gi...@apache.org> on 2023/08/12 11:50:33 UTC
[GitHub] [iotdb] pyh1998 opened a new issue, #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
pyh1998 opened a new issue, #10842:
URL: https://github.com/apache/iotdb/issues/10842
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
IotDB: 1.1.2
Python: 3.8
### Describe the bug and provide the minimal reproduce step
When I upgraded to version 1.1.2 and try to use the session pool, the SessionPool.py file fails to compile with a syntax error.
**Error message:**
```
File "D:\Anaconda\lib\site-packages\iotdb\SessionPool.py", line 65, in SessionPool
def __poll_session(self) -> Session | None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
```

### What did you expect to see?
Programmes can be compiled and run properly
### What did you see instead?
The programme failed to compile
### Anything else?
Please fix this ASAP and support python 3.8
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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] pyh1998 commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "pyh1998 (via GitHub)" <gi...@apache.org>.
pyh1998 commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676874094
@ycycse thanks for your answer!
Will this bug be fixed in the next version? and when will the next version be released?
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676553742
Hi, thank you for bringing up the issue and providing feedback about the bug on IoTDB! Writing union types as X | Y is the feature of python 3.10, actually we should avoiding using it to ensure the compatibility.
You can also use it now by the folllowing methods:
- update your python to 3.10
or
- remove "-> Session|None" to avoid use this feature in codes and recompile py-client in iotdb
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676891912
> @ycycse thanks for your answer! Will this bug be fixed in the next version? and when will the next version be released?
It will. But next version may be released after accumulating a certain amount of features, it may be not very fast. This is a relatively minor compatibility issue so I advice you to directly fix it in your repo.
--
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] pyh1998 commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "pyh1998 (via GitHub)" <gi...@apache.org>.
pyh1998 commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1687281622
@ycycse Hi, are you ready to release version 1.2.1?
I'm still waiting for a new version that will enable python 3.8 to use SessionPoll.
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676904843
> @ycycse thanks for your reply! Will this bug be fixed in the next version? and when will the next version be released?
If you only use the session in iotdb package of python. You can try to upgrade 1.2.1 which won't have the problem of compatibility.
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1709537616
> @ycycse Hi, are you ready to release version 1.2.1? I'm still waiting for a new version that will enable python 3.8 to use SessionPoll.
I'm afraid our release has encountered some delays... I will inform you as soon as the release is successful.
--
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 #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1675872262
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
Re: [I] [Bug] SessionPool for Python3.8 failed to compile with syntax errors [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou closed issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
URL: https://github.com/apache/iotdb/issues/10842
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1677005008
1. We will relase 1.2.1 this week, you can wait and upgrade by 'pip install apache-iotdb==1.2.1'
2. Download the source code of iotdb to your local machine. Fix the code in iotdb-client/client-py/iotdb/SessionPool.py, then run `python3 setup.py sdist bdist_wheel` in 'iotdb-client/client-py/' to build your own package, then pip install the .whl file in 'iotdb-client/client-py/dist'
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676961237
> @ycycse I am little confused with 'py-client', how to upgrade it?
How do you use sessionPool and upgraded to version 1.1.2, did you use 'pip install'?
--
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] pyh1998 commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "pyh1998 (via GitHub)" <gi...@apache.org>.
pyh1998 commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676953113
@ycycse I am little confused with 'py-client', how to upgrade it?
--
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] JackieTien97 commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676532939
@ycycse take a look
--
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] pyh1998 commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "pyh1998 (via GitHub)" <gi...@apache.org>.
pyh1998 commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1676962632
> > @ycycse I am little confused with 'py-client', how to upgrade it?
>
> How do you use sessionPool and upgraded to version 1.1.2, did you use 'pip install apache-iotdb'?
yes 'pip install apache-iotdb==1.1.2'
--
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] ycycse commented on issue #10842: [Bug] SessionPool for Python3.8 failed to compile with syntax errors
Posted by "ycycse (via GitHub)" <gi...@apache.org>.
ycycse commented on issue #10842:
URL: https://github.com/apache/iotdb/issues/10842#issuecomment-1735193320
> @ycycse Hi, are you ready to release version 1.2.1? I'm still waiting for a new version that will enable python 3.8 to use SessionPoll.
Hi, 1.2.1 has already been released https://github.com/apache/iotdb/releases/tag/v1.2.1.
--
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