Conflict between Paramiko SSHclient?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện vấn đề với examples/ingest_dataframe_default_tags.py bằng cách sử dụng mã Paramiko ở cấp cao nhất và biến thể được bọc trong một hàm. Sau đó kiểm tra influxdb_client/_sync/api_client.py quanh ApiClient.del và _signout; được xem là hoàn tất khi biến thể ở cấp cao nhất thoát mà không gặp NoneType TypeError đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Specifications
- Client Version: 1.35.0
- InfluxDB Version: 2.6.0
- Platform: Windows & Linux
- Paramiko: 2.12.0
Code sample to reproduce problem
#### added to example ingest_dataframe_default_tags.py
from paramiko.client import SSHClient, AutoAddPolicy
with SSHClient() as sshclient:
sshclient.set_missing_host_key_policy(AutoAddPolicy)
sshclient.connect(hostname="192.168.0.1",username="XXXXX",password="XXXXX")
## some code to transfer files
#### added to example ingest_dataframe_default_tags.py
Expected behavior
No errors
Actual behavior
Program ends with:
=== results ===
vix-daily: Open 17.96, Close 18.22, High 18.68, Low 17.54
vix-daily: Open 18.45, Close 17.49, High 18.49, Low 17.44
vix-daily: Open 17.66, Close 16.73, High 17.67, Low 16.19
vix-daily: Open 16.72, Close 15.5, High 16.75, Low 15.5
vix-daily: Open 15.42, Close 15.61, High 15.68, Low 15.32
vix-daily: Open 16.15, Close 16.75, High 16.88, Low 15.57
vix-daily: Open 17.32, Close 16.82, High 17.46, Low 16.79
vix-daily: Open 16.6, Close 18.04, High 18.33, Low 16.53
vix-daily: Open 17.29, Close 16.75, High 17.3, Low 16.4
vix-daily: Open 17.07, Close 15.56, High 17.31, Low 15.49
Exception ignored in: <function ApiClient.__del__ at 0x000001C19BC9CC10>
Traceback (most recent call last):
File "C:\Users\bobla\AppData\Local\Programs\Python\Python310\lib\site-packages\influxdb_client\_sync\api_client.py", line 84, in __del__
File "C:\Users\bobla\AppData\Local\Programs\Python\Python310\lib\site-packages\influxdb_client\_sync\api_client.py", line 661, in _signout
TypeError: 'NoneType' object is not callable
This does not affect the execution itself. From what I could gather, the _signout is called an extra time at the end of the program.
Additional info
I was able to solve the error by moving the code in a function
#### added to example ingest_dataframe_default_tags.py
from paramiko.client import SSHClient, AutoAddPolicy
def transferRouterFiles():
from paramiko.client import SSHClient, AutoAddPolicy
with SSHClient() as sshclient:
sshclient.set_missing_host_key_policy(AutoAddPolicy)
sshclient.connect(hostname="192.168.0.1",username="XXXXX",password="XXXXX")
## some code to transfer files
transferRouterFiles()
#### added to example ingest_dataframe_default_tags.py
- Ngôn ngữ chính
- Python
- Star
- 792
- Fork
- 186
- Merge trung bình
- 3 giờ 2 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của influxdata/influxdb-client-python
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
influxdata/influxdb-client-python#613 · 7 bình luận ·
-
Public symbols not properly exported with `py.typed` present — triggers Pylance/Pyright errors Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
influxdata/influxdb-client-python#694 · 6 reaction ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
influxdata/influxdb-client-python#693 · 2 bình luận · 1 reaction ·
-
Socks proxy support Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của influxdata/influxdb-client-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/Repo2RLEnv#163 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NousResearch/hermes-agent#121143 ·