PyTQt: ModuleNotFoundError: No module named 'sip_tqt_config'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. :)
____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux