<div dir="ltr">Hi Dan. <div><br></div><div>FYI, I followed the instructions <a href="https://chirp.danplanet.com/projects/chirp/wiki/DevelopersPython3Environment#Linux">https://chirp.danplanet.com/projects/chirp/wiki/DevelopersPython3Environment#Linux</a> and I'm getting a similar error.</div><div><br></div><div>The Linux instructions fail at first, so I checked out the py3 branch like the Windows instructions on the same page give. Then I can run the chirpwx.py file.</div><div><br></div><div>then i get the following error.</div><div><br></div><div>[boucha@esqueleto chirp (py3 u=)]$ ./chirpwx.py<br>Gtk-Message: 16:55:54.177: Failed to load module "xapp-gtk3-module"<br>Traceback (most recent call last):<br> File "/home/boucha/repos/chirp/chirp/wxui/main.py", line 812, in _menu_open<br> with wx.FileDialog(self, _('Open a file'),<br>TypeError: FileDialog(): argument 3 has unexpected type 'PosixPath'<br></div><div><br></div><div>I'm on Python 3.10.6 on Ubuntu 22.04</div><div><br></div><div>[boucha@esqueleto chirp (py3 u=)]$ python3 -V<br>Python 3.10.6<br></div><div><br></div><div>[boucha@esqueleto chirp (py3 u=)]$ lsb_release -a<br>No LSB modules are available.<br>Distributor ID:        Ubuntu<br>Description:        Ubuntu 22.04.1 LTS<br>Release:        22.04<br>Codename:        jammy<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 14, 2022 at 4:56 PM Dan Smith via chirp_devel <<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> PosixPath comes from pathlib:<br>
> <br>
>>>>> import pathlib<br>
>>>>> pathlib.PosixPath<br>
>> <class 'pathlib.PosixPath'><br>
> <br>
> But I don't think you should be seeing it in this section of code, unless there's some confusion between chirp's platform module and the python one. Not sure how or why you're seeing that though.<br>
<br>
Gah, sorry, I forgot @vishwin introduced Path to our platform module here:<br>
<br>
<a href="https://github.com/kk7ds/chirp/pull/196" rel="noreferrer" target="_blank">https://github.com/kk7ds/chirp/pull/196</a><br>
<br>
I'll need to go dig into that to see if we should be doing something else. Perhaps you're on an older python and importlib_resources behaves differently than my native one in python 3.10. So yeah, let me know which macos you're on and where you got python (and which version) so I can try to narrow it down.<br>
<br>
PosixPath can be str()'d to get just a path string, so perhaps that's all we need to do there.<br>
<br>
--Dan<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com" target="_blank">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" rel="noreferrer" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</blockquote></div>