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

下载指定作品时报错 #180

Closed
Clementine66peter opened this issue Nov 4, 2024 · 5 comments · Fixed by #199
Closed

下载指定作品时报错 #180

Clementine66peter opened this issue Nov 4, 2024 · 5 comments · Fixed by #199
Labels
bug Something isn't working

Comments

@Clementine66peter
Copy link

使用ktoolbox download-post下载单个作品的时候,会报错TypeError: unsupported operand type(s) for /: 'WindowsPath' and 'NoneType',这是由于什么原因?之前都没有这样的问题。
ktoolbox sync-creator则不会报错,能够完整下载

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Nov 5, 2024

有具体日志吗?也就是日志显示在哪个代码区域报错的

@Clementine66peter
Copy link
Author

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Scripts\ktoolbox.exe_main
.py", line 7, in
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ktoolbox_main
.py", line 14, in main
fire.Fire(KToolBoxCli)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\fire\core.py", line 143, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\fire\core.py", line 477, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\fire\core.py", line 691, in _CallAndUpdateTrace
component = loop.run_until_complete(fn(*varargs, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ktoolbox\cli.py", line 175, in download_post
post_path = path / generate_post_path_name(ret.data)
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for /: 'WindowsPath' and 'NoneType'

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Nov 5, 2024

是哪个版本的呢?

@Clementine66peter
Copy link
Author

ktoolbox是0.5.2

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Nov 8, 2024

目前看不出有什么问题,使用的完整的命令是什么呢,以及如果有设置了配置,也发一下配置内容。另外也可以试试最新的版本。

@Ljzd-PRO Ljzd-PRO added the bug Something isn't working label Dec 3, 2024
@Ljzd-PRO Ljzd-PRO linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants