Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.7.0 调用poco出现以下错误 #340

Open
Ujmin opened this issue Jan 13, 2020 · 3 comments
Open

Python 3.7.0 调用poco出现以下错误 #340

Ujmin opened this issue Jan 13, 2020 · 3 comments

Comments

@Ujmin
Copy link

Ujmin commented Jan 13, 2020

Exception ignored in: <function RpcObjectProxy.del at 0x00000242C1D00D08>
Traceback (most recent call last):
File "D:\Program Files\Python\Python37\lib\site-packages\hrpc\object_proxy.py", line 114, in del
File "D:\Program Files\Python\Python37\lib\site-packages\hrpc\client.py", line 63, in evaluate
File "D:\Program Files\Python\Python37\lib\site-packages\hrpc\transport\http.py", line 23, in send
File "D:\Program Files\Python\Python37\lib\site-packages\requests\api.py", line 116, in post
File "D:\Program Files\Python\Python37\lib\site-packages\requests\api.py", line 60, in request
File "D:\Program Files\Python\Python37\lib\site-packages\requests\sessions.py", line 533, in request
File "D:\Program Files\Python\Python37\lib\site-packages\requests\sessions.py", line 646, in send
File "D:\Program Files\Python\Python37\lib\site-packages\requests\adapters.py", line 449, in send
File "F:\Python37\lib\site-packages\urllib3\connectionpool.py", line 588, in urlopen
File "F:\Python37\lib\site-packages\urllib3\connectionpool.py", line 248, in get_conn
File "F:\Python37\lib\site-packages\urllib3\connectionpool.py", line 205, in new_conn
File "D:\Program Files\Python\Python37\lib\logging_init
.py", line 1320, in debug
File "D:\Program Files\Python\Python37\lib\logging_init
.py", line 1468, in log
File "D:\Program Files\Python\Python37\lib\logging_init
.py", line 1478, in handle
File "D:\Program Files\Python\Python37\lib\logging_init_.py", line 1540, in callHandlers
File "D:\Program Files\Python\Python37\lib\logging_init_.py", line 854, in handle
File "D:\Program Files\Python\Python37\lib\logging_init_.py", line 1080, in emit
File "D:\Program Files\Python\Python37\lib\logging_init_.py", line 1070, in _open
NameError: name 'open' is not defined

@yimelia
Copy link
Member

yimelia commented Jan 13, 2020

有一定的可能性是你的Python环境可能有损坏,报错的库是logging,是否是混用了不同版本的python?

可能的参考链接:
https://bugs.python.org/issue26789
python-telegram-bot/python-telegram-bot#1563

或者,请提供更多详细的信息方便我们定位问题:什么类型的Poco?运行了什么脚本语句?用了什么型号手机?

@Ujmin Ujmin closed this as completed Jan 13, 2020
@Ujmin
Copy link
Author

Ujmin commented Jan 13, 2020

在del中直接使用open方法,或者del调用的函数中使用了open方法,好像就会报这个错误
根据错误提示来看,是 hrpc\object_proxy.py 的del 方法中调用的函数用到了open

@Ujmin Ujmin reopened this Jan 13, 2020
@yimelia
Copy link
Member

yimelia commented Jan 13, 2020

请提供更多详细的信息方便我们定位问题:什么类型的Poco?运行了什么脚本语句?用了什么型号手机?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants