Problem with pyqtdeploy 3.1.0

Olaf-Marie Sergent olafsergent at gmail.com
Tue Sep 15 17:14:35 BST 2020


Okay, thank you Patrick it was good because there was no file in arguments,
I was confused because the previous versions of pyqtdeploy opened without a
file.
Now I have another problem when I want to build the demo:

demo$ python3 build-demo.py --target android --verbose
Traceback (most recent call last):
  File "/home/sergent/.local/bin/pyqtdeploy-sysroot", line 8, in <module>
    sys.exit(main())
  File
"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/pyqtdeploysysroot_main.py",
line 91, in main
    specification = SysrootSpecification(specification_file)
  File
"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/sysroot/specification.py",
line 86, in __init__
    plugin = self._plugin_from_file(name, default_plugin_dir)
  File
"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/sysroot/specification.py",
line 162, in _plugin_from_file
    spec = importlib.util.spec_from_file_location(name, plugin_file)
AttributeError: module 'importlib' has no attribute 'util'

Thank you for your answers.

Benoît Eirik

Le mar. 15 sept. 2020 à 17:08, Patrick Stinson <patrickkidd at gmail.com> a
écrit :

> It looks like maybe this error occurs when you run pyqtdeploy without a
> file as an argument? I think I saw something similar when I upgraded.
>
> > On Sep 15, 2020, at 6:11 AM, Phil Thompson <phil at riverbankcomputing.com>
> wrote:
> >
> > On 15/09/2020 14:44, Olaf-Marie Sergent wrote:
> >> I have recently updated *pyqtdeploy* to its latest version (3.1.0)
> >> Unfortunately I get an error code that I can't solve.
> >> $ pyqtdeployTraceback (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 ?
> >
> > What did you do to trigger the error?
> >
> > Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200915/a6f6cfda/attachment-0001.htm>


More information about the PyQt mailing list