<div dir="ltr"><div>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.</div><div>Now I have another problem when I want to build the demo:</div><div><br></div><div>demo$ python3 build-demo.py --target android --verbose<br>Traceback (most recent call last):<br> File "/home/sergent/.local/bin/pyqtdeploy-sysroot", line 8, in <module><br> sys.exit(main())<br> File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/pyqtdeploysysroot_main.py", line 91, in main<br> specification = SysrootSpecification(specification_file)<br> File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/sysroot/specification.py", line 86, in __init__<br> plugin = self._plugin_from_file(name, default_plugin_dir)<br> File "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/sysroot/specification.py", line 162, in _plugin_from_file<br> spec = importlib.util.spec_from_file_location(name, plugin_file)<br>AttributeError: module 'importlib' has no attribute 'util'<br></div><div><br></div><div>Thank you for your answers.<br></div><div><br></div><div>Benoît Eirik</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 15 sept. 2020 à 17:08, Patrick Stinson <<a href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br>
<br>
> On Sep 15, 2020, at 6:11 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> wrote:<br>
> <br>
> On 15/09/2020 14:44, Olaf-Marie Sergent wrote:<br>
>> I have recently updated *pyqtdeploy* to its latest version (3.1.0)<br>
>> Unfortunately I get an error code that I can't solve.<br>
>> $ pyqtdeployTraceback (most recent call last):<br>
>> File "/home/sergent/.local/bin/pyqtdeploy", line 8, in <module><br>
>> sys.exit(main())<br>
>> File<br>
>> "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/pyqtdeploy_main.py",<br>
>> line 69, in main<br>
>> gui = ProjectGUI(project)<br>
>> File<br>
>> "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py",<br>
>> line 59, in __init__<br>
>> self._set_project(project)<br>
>> File<br>
>> "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py",<br>
>> line 220, in _set_project<br>
>> self._name_changed(self._<a href="http://project.name" rel="noreferrer" target="_blank">project.name</a>)<br>
>> File<br>
>> "/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py",<br>
>> line 160, in _name_changed<br>
>> title = os.path.basename(name) if name != '' else "Unnamed"<br>
>> File "/usr/lib/python3.8/posixpath.py", line 142, in basename<br>
>> p = os.fspath(p)TypeError: expected str, bytes or os.PathLike<br>
>> object, not NoneType<br>
>> I am on Ubuntu 20.04.1 LTS How can I easily fix this problem please ?<br>
> <br>
> What did you do to trigger the error?<br>
> <br>
> Phil<br>
</blockquote></div>