Bug #10541
closedInstalled from .whl, on run cannot find module 'wx'
0%
Description
I have installed the .whl (https://trac.chirp.danplanet.com/chirp_next/next-20230421/chirp-20230421-py3-none-any.whl) using pipx. The .whl installed with no issues. The ~/.local/bin has been added to the PATH. On invocation:
chirp
Traceback (most recent call last):
File "/home/antymat/.local/bin/chirp", line 8, in <module>
sys.exit(chirpmain())
^^^^^^^^^^^
File "/home/antymat/.local/pipx/venvs/chirp/lib/python3.11/site-packages/chirp/wxui/__init__.py", line 39, in chirpmain
import wx
ModuleNotFoundError: No module named 'wx'
Updated by Dan Smith over 1 year ago
Well, pipx installs into a venv, which likely means it doesn't get access to system libraries, of which wx usually is. You'll have to get wxPython installed into the venv pipx is making for you in order for it to work. Unfortunately the distro-managed lockdown of python is going to complicate this for linux users in the future. I haven't spent time yet determining the best way out of that box, so you're kinda on your own at the moment. The currently-supported and tested method for running chirp on linux are documented on ChirpOnLinux .
Updated by Dan Smith over 1 year ago
Looks like you might also be able to get pipx to make system packages accessible in your venv with --system-site-packages
. If that works, then that may be your solution, but you'll also need the distro package of wxPython installed per the normal instructions.
Updated by Marcin Wolcendorf over 1 year ago
There were missing packages, specifically python3-future and python3-serial. After installing them and adding --system-site-packages to the pipx on .whl installation, chirp works.
Updated by Dan Smith over 1 year ago
- Status changed from New to Not a bug
Meaning you installed those distro packages? Not sure why those didn't get installed into pipx's venv because they're in the requirements file and should be trivial to install via pip (which pipx uses).
Anyway, glad you got it working.
Updated by Dan Smith over 1 year ago
- Has duplicate Bug #10565: CHIRP Next under UBUNTU 23.04 added