Skip to content

name 'tempid' is not defined #12

@HelloWorld-LTY

Description

@HelloWorld-LTY

靓仔你好!感谢你的开发!!但我现在遇到个问题不知道怎么解决,我是在win11系统使用的,测试下载的时候报错:
2024-12-17 09:24:24,190-Pubmed-INFO- dbpath: pubmedsql
2024-12-17 09:24:24,190-Pubmed-INFO- tablename: pubmed20241217092408
2024-12-17 09:24:24,192-Pubmed-INFO- 读取sql信息成功 数据类型为PMCID和doctitle

2024-12-17 09:24:24,194-Pubmed-INFO- 开始下载第 0-1篇
Error occured: name 'tempid' is not defined
Traceback (most recent call last):
File "E:\PycharmProject\00Deeplearning\01catchliterature\Pubmedsoso\utils\PDFHelper.py", line 151, in PDFdownloadAsync
medLog.info("%s.pdf 从目标站获取pdf数据成功" % tempid)
NameError: name 'tempid' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\PycharmProject\00Deeplearning\01catchliterature\Pubmedsoso\main.py", line 193, in
PDFHelper.PDFBatchDownloadEntry(args.downloadnum)
File "E:\PycharmProject\00Deeplearning\01catchliterature\Pubmedsoso\utils\PDFHelper.py", line 98, in PDFBatchDownloadEntry
pdf_list: [Optional[bytes]] = asyncio.run(cls.PDFBatchDonwloadAsync(target_pmcid_list))
File "E:\python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "E:\python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "E:\PycharmProject\00Deeplearning\01catchliterature\Pubmedsoso\utils\PDFHelper.py", line 135, in PDFBatchDonwloadAsync
results = await asyncio.gather(*tasks)
File "E:\PycharmProject\00Deeplearning\01catchliterature\Pubmedsoso\utils\PDFHelper.py", line 161, in PDFdownloadAsync
medLog.error("%s.pdf 从目标站获取pdf数据失败" % tempid, )
NameError: name 'tempid' is not defined

谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions