J'ai utilisé LDOCE5 Viewer depuis quelques années maintenant. C'est un excellent logiciel (c'est-à-dire, spectateur) pour utiliser le Dictionnaire Longman de l'anglais contemporain. Sur Ubuntu 14.04 et 16.04, je pouvais installer ce logiciel en utilisant les commandes suivantes:
1.
Sudo apt-get install pyqt4-dev-tools qt4-designer
2.
Sudo apt-get install python3-pyqt4.phonon-dbg
3.
Sudo apt-get install python-gst0.10-dbg
4.
Sudo apt-get install python-pip
5.
Sudo pip install --upgrade Whoosh
6.
Sudo apt-get install python-lxml
7.
cd LDOCE5Viewer
8.
Sudo make build
9.
Sudo make install
J'ai inspiré ces commandes à partir du logiciel référentiel source sur GitHub . Maintenant, avec Ubuntu 18.04, je fais face à des erreurs. J'ai réalisé à partir de ce lien que je devrais installer ne autre version de LDOCE5 Viewer qui est basé sur pyqt5
:
Ce visualiseur de LDOCE5 ne fonctionne plus comme prévu. Cela fait un moment que l'upstream a été mis à jour. L'installation de cette PKGBUILD n'est pas recommandée! Pensez à utiliser une autre version de LDOCE5 Viewer ( https://github.com/purboo/ldoce5viewer-pyqt5 est fortement recommandée) ou un dictionnaire entièrement différent (par exemple: GoldenDict).
Je n'ai trouvé aucune instruction pour installer le nouveau LDOCE5 Viewer. Comment installer ce logiciel sur Ubuntu?
EDIT:
Voici les commandes et leurs sorties selon la réponse.
opt@pc:~$ cd ~/Downloads
opt@pc:~/Downloads$ Sudo apt-get install git make python pyqt5-dev-tools python3-pyqt5 \
> python3-pyqt5.qtwebkit python3-lxml python3-whoosh qtgstreamer-plugins-qt5
[Sudo] password for opt:
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version (4.1-9.1ubuntu1).
python is already the newest version (2.7.15~rc1-1).
python set to manually installed.
python3-lxml is already the newest version (4.2.1-1).
pyqt5-dev-tools is already the newest version (5.10.1+dfsg-1ubuntu2).
python3-pyqt5 is already the newest version (5.10.1+dfsg-1ubuntu2).
python3-pyqt5.qtwebkit is already the newest version (5.10.1+dfsg-1ubuntu2).
python3-whoosh is already the newest version (2.7.4+git6-g9134ad92-1).
qtgstreamer-plugins-qt5 is already the newest version (1.2.0-5).
git is already the newest version (1:2.17.1-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
opt@pc:~/Downloads$ git clone https://github.com/purboo/ldoce5viewer-pyqt5.git
Cloning into 'ldoce5viewer-pyqt5'...
remote: Counting objects: 625, done.
remote: Total 625 (delta 0), reused 0 (delta 0), pack-reused 625
Receiving objects: 100% (625/625), 1.22 MiB | 1.66 MiB/s, done.
Resolving deltas: 100% (216/216), done.
opt@pc:~/Downloads$ cd ldoce5viewer-pyqt5
opt@pc:~/Downloads/ldoce5viewer-pyqt5$ make
cd ldoce5viewer/qtgui/ui/; make
make[1]: Entering directory '/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/ui'
pyuic5 advanced.ui -o advanced.py
pyuic5 indexer.ui -o indexer.py
pyuic5 main.ui -o main.py
make[1]: Leaving directory '/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/ui'
cd ldoce5viewer/qtgui/resources/; make
make[1]: Entering directory '/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/resources'
pyrcc5 resource.qrc -o __init__.py
make[1]: Leaving directory '/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/resources'
python ./setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/ldoce5viewer
copying ldoce5viewer/incremental.py -> build/lib/ldoce5viewer
copying ldoce5viewer/__init__.py -> build/lib/ldoce5viewer
copying ldoce5viewer/fulltext.py -> build/lib/ldoce5viewer
creating build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/async.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/advanced.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/indexer.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/__init__.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/access.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/main.py -> build/lib/ldoce5viewer/qtgui
copying ldoce5viewer/qtgui/config.py -> build/lib/ldoce5viewer/qtgui
creating build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/advanced.py -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/indexer.py -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/__init__.py -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/main.py -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/custom.py -> build/lib/ldoce5viewer/qtgui/ui
creating build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/__init__.py -> build/lib/ldoce5viewer/qtgui/resources
creating build/lib/ldoce5viewer/qtgui/utils
copying ldoce5viewer/qtgui/utils/soundplayer.py -> build/lib/ldoce5viewer/qtgui/utils
copying ldoce5viewer/qtgui/utils/singleapp.py -> build/lib/ldoce5viewer/qtgui/utils
copying ldoce5viewer/qtgui/utils/fontfallback.py -> build/lib/ldoce5viewer/qtgui/utils
copying ldoce5viewer/qtgui/utils/__init__.py -> build/lib/ldoce5viewer/qtgui/utils
copying ldoce5viewer/qtgui/utils/error.py -> build/lib/ldoce5viewer/qtgui/utils
creating build/lib/ldoce5viewer/qtgui/utils/mp3play
copying ldoce5viewer/qtgui/utils/mp3play/__init__.py -> build/lib/ldoce5viewer/qtgui/utils/mp3play
copying ldoce5viewer/qtgui/utils/mp3play/windows.py -> build/lib/ldoce5viewer/qtgui/utils/mp3play
creating build/lib/ldoce5viewer/utils
copying ldoce5viewer/utils/cdb.py -> build/lib/ldoce5viewer/utils
copying ldoce5viewer/utils/__init__.py -> build/lib/ldoce5viewer/utils
copying ldoce5viewer/utils/compat.py -> build/lib/ldoce5viewer/utils
copying ldoce5viewer/utils/text.py -> build/lib/ldoce5viewer/utils
creating build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/filemap.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/transform_body.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/transform.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/__init__.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/utils.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/advtree.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/idmreader.py -> build/lib/ldoce5viewer/ldoce5
copying ldoce5viewer/ldoce5/extract.py -> build/lib/ldoce5viewer/ldoce5
creating build/lib/ldoce5viewer/static
creating build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/body.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/Word_sets.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/activator.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/search.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/etymologies.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/thesaurus.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/phrases.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/Word_families.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/jquery.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/common.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/examples.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/collocations.js -> build/lib/ldoce5viewer/static/scripts
copying ldoce5viewer/static/scripts/entry.js -> build/lib/ldoce5viewer/static/scripts
creating build/lib/ldoce5viewer/static/scripts/colorbox
copying ldoce5viewer/static/scripts/colorbox/jquery.colorbox.js -> build/lib/ldoce5viewer/static/scripts/colorbox
copying ldoce5viewer/static/scripts/colorbox/colorbox.css -> build/lib/ldoce5viewer/static/scripts/colorbox
creating build/lib/ldoce5viewer/static/scripts/colorbox/images
copying ldoce5viewer/static/scripts/colorbox/images/loading.gif -> build/lib/ldoce5viewer/static/scripts/colorbox/images
copying ldoce5viewer/static/scripts/colorbox/images/close.png -> build/lib/ldoce5viewer/static/scripts/colorbox/images
creating build/lib/ldoce5viewer/static/documents
copying ldoce5viewer/static/documents/about.html -> build/lib/ldoce5viewer/static/documents
creating build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/speaker_br.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/speaker_am.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/external-link.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/sp.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/speaker_eg.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/external-hover.png -> build/lib/ldoce5viewer/static/images
copying ldoce5viewer/static/images/external.png -> build/lib/ldoce5viewer/static/images
creating build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/about.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/common.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/collocations.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/search.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/Word_families.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/colorbox.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/body.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/entry.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/list.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/activator.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/Word_sets.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/phrases.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/thesaurus.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/etymologies.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/static/styles/examples.css -> build/lib/ldoce5viewer/static/styles
copying ldoce5viewer/qtgui/resources/resource.qrc -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/next-mac.png -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/Makefile -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/ldoce5viewer.svg -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/prev-mac.png -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/ldoce5viewer.ico -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/ldoce5viewer.png -> build/lib/ldoce5viewer/qtgui/resources
copying ldoce5viewer/qtgui/resources/ldoce5viewer.icns -> build/lib/ldoce5viewer/qtgui/resources
creating build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-properties.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-out-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/application-exit.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/application-exit-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-about-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-find-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-out.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-in-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-about-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-original-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear-48-src.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear-48.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-down.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/iconblock-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-find-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-preview-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-up.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/reload.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-down-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-preview-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/Makefile -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/window-close-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/reload-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/LICENSE.txt -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-previous.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/application-exit-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/window-close-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/window-close-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/reload-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-out-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/star.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/iconblock-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-next-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-in.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/iconblock-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/icongen.py -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-in-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-up-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-find-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/star-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/window-close.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-contents-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-next-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-properties-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-next-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-properties-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-preview.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-previous-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-preview-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/star-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-in-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-copy-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-previous-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-about.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-previous-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-next.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/reload-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-find.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/star-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-contents-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-print-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-up-22.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/application-exit-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-copy-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/iconblock.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/document-properties-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-copy.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-down-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-original.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-original-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-out-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-about-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-down-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/zoom-original-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-contents.svg -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/go-up-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-copy-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/edit-clear-16.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/resources/icons/help-contents-24.png -> build/lib/ldoce5viewer/qtgui/resources/icons
copying ldoce5viewer/qtgui/ui/advanced.ui -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/indexer.ui -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/Makefile -> build/lib/ldoce5viewer/qtgui/ui
copying ldoce5viewer/qtgui/ui/main.ui -> build/lib/ldoce5viewer/qtgui/ui
running build_scripts
creating build/scripts-3.6
copying and adjusting scripts/ldoce5viewer -> build/scripts-3.6
changing mode of build/scripts-3.6/ldoce5viewer from 644 to 755
opt@pc:~/Downloads/ldoce5viewer-pyqt5$ python3 ./ldoce5viewer.py
need to run '$ make' in order for the program to work
opt@pc:~/Downloads/ldoce5viewer-pyqt5$
J'ai fait quelques tests et j'ai maintenant une solution complète sur l'installation de la version Qt4 de LDOCE5 Viewer.
Nous devons installer une combinaison de paquets - la plupart des référentiels officiels 18.04 LTS et 6 du référentiel 16.04 LTS. Habituellement, cette méthode n'est pas recommandée, mais nous souhaitons que le logiciel fonctionne à nouveau sans perte de fonctionnalité.
Au début, nous installons les paquets du dépôt officiel 18.04 LTS:
Sudo apt-get install git make pyqt4-dev-tools python-lxml \
python-whoosh libqt4-opengl python-gst-1.0 \
libcanberra-gtk3-module libcanberra-gtk-module
ensuite, nous téléchargeons les packages à partir du référentiel 16.04 LTS, les installons et verrouillons leurs versions:
cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python-qt4/pyqt4-dev-tools_4.11.4+dfsg-1build4_AMD64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python-qt4/python-qt4_4.11.4+dfsg-1build4_AMD64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/s/sip4/python-sip_4.17+dfsg-1build1_AMD64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/q/qtwebkit-source/libqtwebkit4_2.3.2-0ubuntu11_AMD64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_AMD64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python-qt4/python-qt4-phonon_4.11.4+dfsg-1build4_AMD64.deb
Sudo apt-get install ./*.deb
cat <<EOF | Sudo tee /etc/apt/preferences.d/pin-ldoce5
Package: pyqt4-dev-tools
Pin: version 4.11.4+dfsg-1build4
Pin-Priority: 1337
Package: python-qt4
Pin: version 4.11.4+dfsg-1build4
Pin-Priority: 1337
Package: python-sip
Pin: version 4.17+dfsg-1build1
Pin-Priority: 1337
Package: libqtwebkit4
Pin: version 2.3.2-0ubuntu11
Pin-Priority: 1337
Package: libpng12
Pin: version 0_1.2.54-1ubuntu1.1
Pin-Priority: 1337
Package: python-qt4-phonon
Pin: version 4.11.4+dfsg-1build4
Pin-Priority: 1337
EOF
enfin, nous clonons git-repository, fabriquons et installons LDOCE5 Viewer sur le système:
git clone https://github.com/ciscorn/ldoce5viewer.git
cd ldoce5viewer
make
Sudo make install
comme résultat, nous aurons l'icône de LDOCE5 Viewer dans le lanceur.
Il serait entièrement fonctionnel, y compris le son (bouton de prononciation pour un mot ou une phrase).
Comme nous ne pouvons pas facilement installer une version basée sur Qt4 sur Ubuntu 18.04 LTS, essayons donc avec une version basée sur Qt5.
Au début, nous devons installer des dépendances:
Sudo apt-get install git make python pyqt5-dev-tools python3-pyqt5 \
python3-pyqt5.qtwebkit python3-lxml python3-whoosh qtgstreamer-plugins-qt5
Puis téléchargez et installez le logiciel
cd ~/Downloads
git clone https://github.com/purboo/ldoce5viewer-pyqt5.git
cd ldoce5viewer-pyqt5
make
et essayez de courir avec python3 ./ldoce5viewer.py
.
Je n'ai pas le fichier ldoce5.data
donc je ne vois que ce message dans la fenêtre de LDOCE5 Viewer:
Je ne suis pas sûr que ce soit entièrement fonctionnel ou non. S'il vous plaît essayez par vous-même.
Au cours de la session de discussion, nous avons découvert que python2 et python3 sont fournis par la distribution Anaconda.
$ which python3
/home/opt/anaconda3/bin/python3
$ which python
/home/opt/anaconda3/bin/python
$ echo $PATH
/home/opt/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Mais nous devons utiliser des versions à l'échelle du système. Nous pouvons donc éditer ~/.bashrc
ou ~/.profile
et supprimer /home/opt/anaconda3/bin
de celui-ci, ou pour une session:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
puis lancez le logiciel.
L'indexation a été effectuée, le dictionnaire est entièrement fonctionnel.
Lorsque l'utilisateur clique sur le bouton de prononciation d'un mot ou d'une phrase, une fenêtre intitulée ' Console d'erreur ' s'affiche, dont le contenu est le suivant:
Une erreur non gérée s'est produite.
Désolé pour le dérangement.
Veuillez copier le texte suivant dans un rapport de bogue:Traceback (appel le plus récent en dernier): Fichier "/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/utils/soundplayer.py", ligne 114, dans need_data appsrc.emit ('Push-buffer', Gst.Buffer .new_wrapped (self._data [: taille])) UnicodeDecodeError: le codec 'ascii' ne peut pas décoder l'octet 0xff en position 0: l'ordinal n'est pas dans la plage (128)
Voir également:
En ce qui concerne la console d’erreur rapportée précédemment dans l’installation QT5:
Une erreur non gérée s'est produite.
Désolé pour le dérangement.
Veuillez copier le texte suivant dans un rapport de bogue:Traceback (appel le plus récent en dernier): Fichier "/home/opt/Downloads/ldoce5viewer-pyqt5/ldoce5viewer/qtgui/utils/soundplayer.py", ligne 114, dans need_data appsrc.emit ('Push-buffer', Gst.Buffer .new_wrapped (self._data [: taille])) UnicodeDecodeError: le codec 'ascii' ne peut pas décoder l'octet 0xff en position 0: l'ordinal n'est pas dans la plage (128)
Je suis allé à la ligne 114 au fichier ldoce5viewer/qtgui/utils/soundplayer.py et j'ai changé
appsrc.emit ('Push-buffer', Gst.Buffer.new_wrapped (self._data [: taille]))
par
appsrc.emit ('Push-buffer', Gst.Buffer.new_wrapped (self._data [: size] .data ()))
Après avoir recompilé le son a fonctionné pour moi.