I'm trying to build TDE bindings packages for Slackware. I'm not a Python wiz kid and don't play one on TV. I understand what is happening in the failure but don't know how to fix.
My pytqt build script fails with:
ModuleNotFoundError: No module named 'sip_tqt_config'
Caused by the configure.py command: import sip_tqt_config
I presume the sip4-tqt package built okay because such a file does exist:
/usr/lib64/python3.9/site-packages/sip4-tqt/sip_tqt_config.py
Running the following command exits with a zero exit code:
python3 /usr/lib64/python3.9/site-packages/sip4-tqt/sip_tqt_config.py
Running a python shell:
import sys
print(sys.path) ['', '/usr/lib64/python39.zip', '/usr/lib64/python3.9', '/usr/lib64/python3.9/lib-dynload', '/usr/lib64/python3.9/site-packages']
Here is how I compiled sip4-tqt:
PYTHON_SITE_PACKAGES=$(python3 -c "import site; print(site.getsitepackages())" | cut -d ',' -f1 | tr -d "'" | tr -d "[")
FLAGS="$CPUOPT -I${INSTALL_DIR}/include/tqt -I/${INSTALL_DIR}/include -I/usr/include"
python3 configure.py \ -b "${INSTALL_DIR}/bin" \ -d "${PYTHON_SITE_PACKAGES}/${PRGNAM}" \ -e "${INSTALL_DIR}/include/" \ -u CFLAGS="$FLAGS" CXXFLAGS="$FLAGS"
Where $INSTALL_DIR=/opt/trinity.
Here is how I am trying to compile pytqt based on my poor understanding of the Debian rules script:
PYTHON_VERSION="$(python3 -V | cut -f 2 -d' ' | cut -f 1-2 -d.)" PYTHON_SITE_PACKAGES="$(python3 -c "import site; print(site.getsitepackages())" | cut -d ',' -f1 | tr -d "'" | tr -d "[")"
FLAGS="$CPUOPT -I${INSTALL_DIR}/include/tqt -I/${INSTALL_DIR}/include -I/usr/include"
python3 configure.py \ -b "${INSTALL_DIR}/bin" \ -d "${PYTHON_SITE_PACKAGES}/${PRGNAM}" \ -e "${INSTALL_DIR}/include/" \ -l /usr/include/python${PYTHON_VERSION} \ -v ${PYTHON_SITE_PACKAGES}/sip4-tqt/ \ -m /usr/lib${LIBDIRSUFFIX}/python${PYTHON_VERSION}/config-3.9-x86_64-linux-gnu \ -z CFLAGS="$FLAGS" CXXFLAGS="$FLAGS"
Where $INSTALL_DIR=/opt/trinity.
Fish out of water....
Thanks. :)