1
我試圖使至少一個成功建立在特拉維斯CI,但至今沒有運氣(7誤碼版本)上特拉維斯CI與Python3安裝PyQt4的
的問題是,我使用PyQt4的,它似乎是太複雜,無法與Travis一起使用。運行腳本之前
我.travis.yml
language: python
python:
- "3.5"
before_install:
#- sudo apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
#- sudo apt-get install python3-sip python3-sip-dev python3-pyqt4 cmake
- sudo mkdir -p /downloads
- sudo chmod a+rw /downloads
- curl -L http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz -o /downloads/sip.tar.gz
- curl -L http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz -o /downloads/pyqt4.tar.gz
# Builds
- sudo mkdir -p /builds
- sudo chmod a+rw /builds
install:
# Qt4
- pushd /builds
# SIP
- tar xzf /downloads/sip.tar.gz --keep-newer-files
- pushd sip-4.16.5
- python configure.py
- make
- sudo make install
- popd
# PyQt4
- tar xzf /downloads/pyqt4.tar.gz --keep-newer-files
- pushd PyQt-x11-gpl-4.11.3
- python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui
- make
- sudo make install
- popd
# Builds Complete
- popd
- pip install -r requirements.txt
一切都OK。劇本運行後,特拉維斯說:
ERROR: Failure: ImportError (No module named 'PyQt4')
我該怎麼做錯了?
這讓我走得比我在那裏看到的更多。你可以發佈一個鏈接到你的回購,所以我看看它?謝謝! –
@JamesDraper [這裏](https://github.com/GriMel/Kindleo)它是 – GriMel
真棒謝謝你!這是我們的[回購](https://github.com/draperjames/qtpandas/issues/new),如果你想檢查它。 –