python 2024. 12. 20. 11:39

- error message:

  File "C:\Python\Python38-32\lib\site-packages\pygpsclient\app.py", line 889, in process_data
    self.frm_banner.update_frame()
  File "C:\Python\Python38-32\lib\site-packages\pygpsclient\banner_frame.py", line 399, in update_frame
    self._update_dop(units)
  File "C:\Python\Python38-32\lib\site-packages\pygpsclient\banner_frame.py", line 519, in _update_dop
    self._dop.set(f"{pdop:.2f} {dop2str(pdop):<9}")
ValueError: Unknown format code 'f' for object of type 'str'
Exception in Tkinter callback
Traceback (most recent call last):

 

> 관련 해결책:

 

https://fishpoint.tistory.com/5226

 

ValueError: Unknown format code 'f' for object of type 'str'

ValueError: Unknown format code 'f' for object of type 'str' 에러가 날 때는 대부분 Type 에러다. 파이선 print 에서 format을 사용하여 프린트 문을 인쇄할 때 발생하는 에러다. 이 오류 메시지는 부동 소숫점값을

fishpoint.tistory.com

 

'python' 카테고리의 다른 글

Python TCP echo program  (0) 2023.12.28
Python Exception examples  (0) 2023.04.13
[Python] VSCode argument 설정  (0) 2023.04.13
pypi snmp  (0) 2023.02.14
[Python] 임의의 OID로 답변하는 snmp agent 만들기  (0) 2023.02.14
posted by cskimair
:
python 2023. 12. 28. 18:39

 

https://subscription.packtpub.com/book/cloud-and-networking/9781786463999/1/ch01lvl1sec15/writing-a-simple-tcp-echo-client-server-application

 

Python Network Programming Cookbook - Second Edition

Overview of this book Python Network Programming Cookbook - Second Edition highlights the major aspects of network programming in Python, starting from writing simple networking clients to developing and deploying complex Software-Defined Networking (SDN)

subscription.packtpub.com

 

'python' 카테고리의 다른 글

Unknown format code 'f' for object of type 'str'  (1) 2024.12.20
Python Exception examples  (0) 2023.04.13
[Python] VSCode argument 설정  (0) 2023.04.13
pypi snmp  (0) 2023.02.14
[Python] 임의의 OID로 답변하는 snmp agent 만들기  (0) 2023.02.14
posted by cskimair
:
python 2023. 4. 13. 18:50

 

 

https://nachwon.github.io/exception/

 

[Python 문법] 예외처리 (Exception)

예외처리를 통해 좀 더 유연한 Python 프로그램을 만들어보자!

nachwon.github.io

 

'python' 카테고리의 다른 글

Unknown format code 'f' for object of type 'str'  (1) 2024.12.20
Python TCP echo program  (0) 2023.12.28
[Python] VSCode argument 설정  (0) 2023.04.13
pypi snmp  (0) 2023.02.14
[Python] 임의의 OID로 답변하는 snmp agent 만들기  (0) 2023.02.14
posted by cskimair
:
python 2023. 4. 13. 14:39

> 아래와 같이

"args": ["192.168.0.60", "hana#valley3", "e$fosval8", "10161", "10162"] //arguments for ED_SNMP_Viewer.py only running&debugging

를 첨가해주면 실행시 argument로 설정되어서 전달됨.

 

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",            
            "args": ["192.168.0.60", "hana#valley3", "e$fosval8", "10161", "10162"] //arguments for ED_SNMP_Viewer.py only running&debugging
        }
    ]
}

 

 

 

https://yooloo.tistory.com/63

 

[Python] VSCode argument 설정

VSCode(Visual Studio Code)로 작성한 프로그램에 argument를 전달하려면 terminal에서 수행 시 argument를 전달하거나 VSCode에서 수행 시 launch.json 파일에 정의하여 전달하면 된다. 본 문서에서는 argument를 launch

yooloo.tistory.com

 

'python' 카테고리의 다른 글

Python TCP echo program  (0) 2023.12.28
Python Exception examples  (0) 2023.04.13
pypi snmp  (0) 2023.02.14
[Python] 임의의 OID로 답변하는 snmp agent 만들기  (0) 2023.02.14
초보자를 위한 PyQt 프로그래밍  (0) 2023.02.14
posted by cskimair
:
python 2023. 2. 14. 14:04

 

 

https://pypi.org/project/snmp/

posted by cskimair
:
python 2023. 2. 14. 14:03

 

[Python] 임의의 OID로 답변하는 snmp agent 만들기

 

http://egloos.zum.com/mcchae/v/11107667

 

'python' 카테고리의 다른 글

[Python] VSCode argument 설정  (0) 2023.04.13
pypi snmp  (0) 2023.02.14
초보자를 위한 PyQt 프로그래밍  (0) 2023.02.14
Python UDP CLient / Server example  (0) 2022.12.19
PyQt - QThread 사용, thread 간 통신  (0) 2022.04.15
posted by cskimair
: