"wxPython/Phoenix does not appear to be installed on the system"
Trying to [Slack]build KiCAD 8 (on -current) and I'm getting this failure:
CMake Error at cmake/FindwxPython.cmake:56 (message): wxPython/Phoenix does not appear to be installed on the system wxGTK3-3.0.5-x86_64-4_SBo, wxPython3-3.0.2.0-x86_64-4_SB, wxPython4-4.2.1-x86_64-1_SBo, wxWidgets-3.2.4-x86_64-1_SBo ...are all installed. Anyone have a fix for this? |
Try running the commands that cmake runs:
Code:
python |
Were the dependencies installed before or after the update to python 3.11?
|
Quote:
Code:
>>> import wx Code:
ls /var/log/packages/ | grep "wx" I removed ALL wxPython packages and reinstalled only AlienBOB's package and did a reboot with no effect. Quote:
|
Two things
Python 3.12.2 , why ? slackware provides python-3.11 not 3.12 And , second thing , if you have installed wxpython etc etc etc , okey ..but , probably installed when you have python 3.9 ? You need to rebuild ALL , of the python things to sync with the version installed. |
Quote:
That wasn't my box. My box the default Slackware package on it: Code:
Python 3.11.9 (main, Apr 2 2024, 13:43:44) [GCC 13.2.0] on linux Quote:
The REAL question is, why isn't python seeing the wxPython? How does it detect these things? |
Quote:
If you did B), it won't work because AlienBOB's wxPython package was built with Python 3.9 (just look inside the package file, there will be many files installed in python 3.9 directories) As suggested by USUARIONUEVO, you have to rebuild the packages on your Slackware machine with Python 3.11 and then install those packages. |
I"m no python expert, but my impression is that:
Trying to figure out where python has actually found a module has always been confusing to me. It has a defined search order, but there does not seem to be an easy method in code to determine the point at which the search succeeded. (Well, at least, easy for me.) |
arfon, check for installed packages built for python3.9:
Code:
grep -l -m 1 python3.9 /var/log/packages/*|cut -d/ -f5|rev |cut -d- -f 4- |rev Quote:
Code:
# python3 -c "import setuptools as i; print(i.__file__)" |
To make wxpython work in Slackware current, I built the following packages from source using AlienBOB slackbuild scripts (adapted to match newer versions and source file tar format in some cases instead of tar.gz).
- python-pathlib2 2.3.7.post1 - python-attrdict 2.02 - wxpython 4.2.1 Install the first two packages before building wxpython. wxpython build will fail with : Code:
:info:build Compiling wx/svg/_nanosvg.pyx because it changed. Code:
cimport cython.object Patch: aeb557d Note: I patched the above source file the quick and dirty way (I'm not so good at patching file). I'm sure someone can show the proper way to apply this patch in the wxpython Slackbuild |
Everything builds fine here, this is the sbopkg log. kicad seems to run fine too.
Code:
SUMMARY LOG |
Quote:
This means that Pat's upgrade to 3.11 broke the entire python universe on Slackware, forcing everyone to go through and re-run the SlackBuild scripts for every single module. Reinstalling isn't enough. A 3rd party repo like alienbob's is going to lag for some time until he gets a chance to update everything. As others here have mentioned the solution is to rebuild the packages you need yourself or wait for the repo you use to catch up. Python is so much fun...... |
Latest error:
Code:
-- Found wxPython Phoenix 4.2.1/gtk3 (wxWidgets 3.2.2.1) Code:
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES When it said (before that): Code:
-- Found wxPython Phoenix 4.2.1/gtk3 (wxWidgets 3.2.2.1) |
So after removing ALL of the python and wx packages and reinstalling them from -current/Alien/SBo. It still didn't work.
In the end, my issue was that I had AlienBOB's wxGTK3 3.2.1 package on the machine with the wxWidget 3.2.4 SBo package. It would 'see' the correct wxGTK3 version from the SBo but, it would try and load the wrong one from AlienBOB. Got rid of the wxGTK3 3.2.1 package and now KiCAD builds. What a PITA |
All times are GMT -5. The time now is 08:49 AM. |