简体   繁体   English

pyqtdeploy : TypeError: 预期的 str、bytes 或 os.PathLike 对象,而不是 NoneType

[英]pyqtdeploy : TypeError: expected str, bytes or os.PathLike object, not NoneType

I have recently updated pyqtdeploy to its latest version (3.1.0)我最近将pyqtdeploy更新到了最新版本 (3.1.0)

Unfortunately I get an error code that I can't solve.不幸的是,我收到了无法解决的错误代码。

$ pyqtdeploy
Traceback (most recent call last):
  File "/home/sergent/.local/bin/pyqtdeploy", line 8, in <module>
    sys.exit(main())
  File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/pyqtdeploy_main.py", line 69, in main
    gui = ProjectGUI(project)
  File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py", line 59, in __init__
    self._set_project(project)
  File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py", line 220, in _set_project
    self._name_changed(self._project.name)
  File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py", line 160, in _name_changed
    title = os.path.basename(name) if name != '' else "Unnamed"
  File "/usr/lib/python3.8/posixpath.py", line 142, in basename
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

I am on Ubuntu 20.04.1 LTS How can I easily fix this problem please ?我使用的是 Ubuntu 20.04.1 LTS 请问如何轻松解决此问题? Thank you in advance for any help.预先感谢您的任何帮助。

In the new version you need to specify a project name eg: pyqtdeploy myproject.pdt In my case, this leads to a different error, though.在新版本中,您需要指定一个项目名称,例如:pyqtdeploy myproject.pdt 在我的情况下,这会导致不同的错误。 But maybe it is a sufficient solution to your problem.但也许这足以解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Django TypeError:预期的 str、bytes 或 os.PathLike object,不是 NoneType - Django TypeError: Expected str, bytes or os.PathLike object, not NoneType 预期的 str、bytes 或 os.PathLike 对象,而不是 NoneType - expected str, bytes or os.PathLike object, not NoneType 预期的 str、bytes 或 os.PathLike object,而不是 NoneType(tkinter 错误) - expected str, bytes or os.PathLike object, not NoneType (tkinter error) 有关TypeError的错误:预期的str,字节或os.PathLike对象,而不是NoneType - An error about TypeError: expected str, bytes or os.PathLike object, not NoneType makemigration 导致错误“TypeError:预期的 str、字节或 os.PathLike 对象,而不是 NoneType” - makemigration causing error "TypeError: expected str, bytes or os.PathLike object, not NoneType" python 中的子进程调用,出现错误“TypeError: expected str, bytes or os.PathLike object, not NoneType - subprocess call in python, getting error "TypeError: expected str, bytes or os.PathLike object, not NoneType 文件=打开(广告,'wb')类型错误:预期的str,字节或os.PathLike object,不是NoneType - file = open(ad, 'wb') TypeError: expected str, bytes or os.PathLike object, not NoneType 类型错误:尝试安装 muonic 时应为 str、字节或 os.PathLike object,而不是 NoneType - TypeError: expected str, bytes or os.PathLike object, not NoneType while trying to install muonic docker-compose/django TypeError:预期的 str、字节或 os.PathLike 对象,而不是 NoneType - docker-compose/django TypeError: expected str, bytes or os.PathLike object, not NoneType 类型错误:运行 mrjob 时预期的 str、字节或 os.PathLike object,而不是 NoneType - TypeError: expected str, bytes or os.PathLike object, not NoneType when running mrjob
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM