Project

General

Profile

Actions

Bug #10541

closed

Installed from .whl, on run cannot find module 'wx'

Added by Marcin Wolcendorf over 1 year ago. Updated over 1 year ago.

Status:
Not a bug
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/23/2023
Due date:
% Done:

0%

Estimated time:
Chirp Version:
next
Model affected:
all models
Platform:
Linux
Debug Log:
I read the instructions above:

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'


Related issues 1 (0 open1 closed)

Has duplicate Bug #10565: CHIRP Next under UBUNTU 23.04Rejected05/08/2023

Actions
Actions #1

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 .

Actions #2

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.

Actions #3

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.

Actions #4

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.

Actions #5

Updated by Dan Smith over 1 year ago

  • Has duplicate Bug #10565: CHIRP Next under UBUNTU 23.04 added
Actions

Also available in: Atom PDF