Public bug reported:
The package `python3-wxgtk4.0` seems to be missing some setup.
After installation, `/usr/lib/python3/dist-packages` is not in python
path so the module cannot be found.
Then, a `py.typed` empty file is missing in `/usr/lib/python3/dist-
packages/wx` . It is required for the MyPy stubs to be recognized,
otherwise, MyPy needs to be invoked with the `--follow-untyped-imports
option`.
The other python3-wx* packages all has the same issue.
Parentheses: the bug report form complains the package
`python3-wxgtk4.0` does not exist on Ubuntu. I swear I’m running XUbuntu
24.04 and the package name is a copy-paste from Synaptic. I don’t
understand this. I’m selecting `wxpython4.0` as suggested, but the
package name really is `python3-wxgtk4.0`.
I solved it adding this in `$HOME/.profile` (then restarted):
export PYTHONPATH="/usr/lib/python3/dist-packages"
Then created the missing file:
sudo touch /usr/lib/python3/dist-packages/wx/py.typed
It’s fine with those two fixes, but it may be too much difficulties not
understanding why things do not work for many people.
As a side note, not a package bug, to use PyLint on an application
source which use the `wx` module, pYLint needs to be invoked with this
added command line option: `--extension-pkg-allow-list=wx`. Otherwise,
it will refuse to see the module. See:
https://stackoverflow.com/a/65352850/279335 . This is not a package bug,
but it would nice if by any way, people installing this package could be
notified about this.
** Affects: wxpython4.0 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160462
Title:
Missing setup for python3-wxgtk4.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wxpython4.0/+bug/2160462/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs