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

RuntimeWarning: Enable tracemalloc to get the object allocation traceback #1

Open
gudukuaile opened this issue Oct 31, 2022 · 4 comments

Comments

@gudukuaile
Copy link

File "E:\software\anaconda\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "E:\software\anaconda\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "F:\mywork\python\小项目\微信读书\bunnyburrow-weread\weread\core\download.py", line 208, in download
book_metadata = await page.Jeval('#app', '''(elm) => {
File "E:\software\anaconda\lib\site-packages\pyppeteer\page.py", line 393, in querySelectorEval
return await frame.querySelectorEval(selector, pageFunction, *args)
File "E:\software\anaconda\lib\site-packages\pyppeteer\frame_manager.py", line 350, in querySelectorEval
return await document.querySelectorEval(selector, pageFunction, *args)
File "E:\software\anaconda\lib\site-packages\pyppeteer\element_handle.py", line 413, in querySelectorEval
result = await self.executionContext.evaluate(
File "E:\software\anaconda\lib\site-packages\pyppeteer\execution_context.py", line 53, in evaluate
handle = await self.evaluateHandle(
File "E:\software\anaconda\lib\site-packages\pyppeteer\execution_context.py", line 112, in evaluateHandle
raise ElementHandleError('Evaluation failed: {}'.format(
pyppeteer.errors.ElementHandleError: Evaluation failed: TypeError: Cannot read property '$store' of undefined
at pyppeteer_evaluation_script:2:28
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "E:\software\anaconda\lib\site-packages\pyppeteer\launcher.py", line 153, in _close_process
self._loop.run_until_complete(self.killChrome())
File "E:\software\anaconda\lib\asyncio\base_events.py", line 622, in run_until_complete
self._check_closed()
File "E:\software\anaconda\lib\asyncio\base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Launcher.killChrome' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

在download函数中 book_metadata = await page.Jeval('#app', '''(elm) => {
这段代码没有获取到内容

@morning-start
Copy link

我也遇到了同样的问题

@czy20010112
Copy link

我也遇到了一样的问题,请问前几位大佬们解决了吗 或者找到平替的项目了吗

@ghost
Copy link

ghost commented Feb 1, 2023

同问题

@HaaiSo
Copy link

HaaiSo commented Feb 13, 2023

同样的问题,获取不到bookmetadata

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

4 participants