<div dir="ltr">
<div class="gmail-votecell gmail-post-layout--left"><div class="gmail-js-voting-container gmail-grid gmail-fd-column gmail-ai-stretch gmail-gs4 gmail-fc-black-200">
</div>
</div>
<div class="gmail-postcell gmail-post-layout--right">
<div class="gmail-s-prose gmail-js-post-body">
<p>I have recently updated <strong>pyqtdeploy</strong> to its latest version (3.1.0)</p>
<p>Unfortunately I get an error code that I can't solve.</p>
<pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">$ pyqtdeploy
</span><span class="gmail-typ">Traceback</span><span class="gmail-pln"> </span><span class="gmail-pun">(</span><span class="gmail-pln">most recent call last</span><span class="gmail-pun">):</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/home/sergent/.local/bin/pyqtdeploy"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">8</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> </span><span class="gmail-pun"><</span><span class="gmail-pln">module</span><span class="gmail-pun">></span><span class="gmail-pln">
sys</span><span class="gmail-pun">.</span><span class="gmail-pln">exit</span><span class="gmail-pun">(</span><span class="gmail-pln">main</span><span class="gmail-pun">())</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/pyqtdeploy_main.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">69</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> main
gui </span><span class="gmail-pun">=</span><span class="gmail-pln"> </span><span class="gmail-typ">ProjectGUI</span><span class="gmail-pun">(</span><span class="gmail-pln">project</span><span class="gmail-pun">)</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">59</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> __init__
self</span><span class="gmail-pun">.</span><span class="gmail-pln">_set_project</span><span class="gmail-pun">(</span><span class="gmail-pln">project</span><span class="gmail-pun">)</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">220</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> _set_project
self</span><span class="gmail-pun">.</span><span class="gmail-pln">_name_changed</span><span class="gmail-pun">(</span><span class="gmail-pln">self</span><span class="gmail-pun">.</span><span class="gmail-pln">_project</span><span class="gmail-pun">.</span><span class="gmail-pln">name</span><span class="gmail-pun">)</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/home/sergent/.local/lib/python3.8/site-packages/pyqtdeploy/gui/project_gui.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">160</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> _name_changed
title </span><span class="gmail-pun">=</span><span class="gmail-pln"> os</span><span class="gmail-pun">.</span><span class="gmail-pln">path</span><span class="gmail-pun">.</span><span class="gmail-pln">basename</span><span class="gmail-pun">(</span><span class="gmail-pln">name</span><span class="gmail-pun">)</span><span class="gmail-pln"> </span><span class="gmail-kwd">if</span><span class="gmail-pln"> name </span><span class="gmail-pun">!=</span><span class="gmail-pln"> </span><span class="gmail-str">''</span><span class="gmail-pln"> </span><span class="gmail-kwd">else</span><span class="gmail-pln"> </span><span class="gmail-str">"Unnamed"</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"/usr/lib/python3.8/posixpath.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">142</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> basename
p </span><span class="gmail-pun">=</span><span class="gmail-pln"> os</span><span class="gmail-pun">.</span><span class="gmail-pln">fspath</span><span class="gmail-pun">(</span><span class="gmail-pln">p</span><span class="gmail-pun">)</span><span class="gmail-pln">
</span><span class="gmail-typ">TypeError</span><span class="gmail-pun">:</span><span class="gmail-pln"> expected str</span><span class="gmail-pun">,</span><span class="gmail-pln"> bytes </span><span class="gmail-kwd">or</span><span class="gmail-pln"> os</span><span class="gmail-pun">.</span><span class="gmail-typ">PathLike</span><span class="gmail-pln"> object</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">not</span><span class="gmail-pln"> </span><span class="gmail-typ">NoneType</span></code></pre>
<p>I am on Ubuntu 20.04.1 LTS
How can I easily fix this problem please ?</p><p>Thank you in advance for any help.</p><p><br></p><p>BenoƮt Eirik</p><p><br></p><p><a href="https://stackoverflow.com/questions/63754512/pyqtdeploy-typeerror-expected-str-bytes-or-os-pathlike-object-not-nonetype">https://stackoverflow.com/questions/63754512/pyqtdeploy-typeerror-expected-str-bytes-or-os-pathlike-object-not-nonetype</a></p>
</div></div>
</div>