bug in the installation of kwant (linux mint)
Dear Kwant developers I am having problems with the installation of kwant in linux mint 19.1 I tried to installed the pre-build package of kwant on my computer but I faced problems with the dependencies. This is what I did: 1. Inserted the lines below in the sources.list file located in /etc/apt/ deb [trusted=yes] http://ftp.debian.org/debian stretch-backports main deb [trusted=yes] http://downloads.kwant-project.org/debian/ stretch-backports main deb-src [trusted=yes] http://downloads.kwant-project.org/debian/ stretch-backports main 2. Executed the commands below as superuser apt-get update apt-get -t stretch-backports install python3-kwant python-kwant-doc and this was the output The following packages have unmet dependencies: python3-kwant : Depends: python3 (< 3.6) but 3.6.7-1~18.04 is to be installed Depends: libmumps-4.10.0 but it is not installable Depends: libmumps-scotch-4.10.0 but it is not installable E: Unable to correct problems, you have held broken packages. Since the pre-build package option did not work, I decided to try to build the package from source. This is what I did: 1. Move to the /tmp folder 2. Executed successfully the command, apt-get build-dep tinyarray kwant 3. Executed successfully the command, apt-get source --compile tinyarray 3. Had a problem with the command apt-get source --compile kwant, that showed me the following error There is a programable error in your configuration file: Traceback (most recent call last): File "/tmp/kwant-1.4.0/debian/python3-kwant/usr/lib/python3.6/dist-packages/kwant/qsymm.py", line 21, in <module> import qsymm ModuleNotFoundError: No module named 'qsymm' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sphinx/config.py", line 157, in __init__ execfile_(filename, config) File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_ exec_(code, _globals) File "conf.py", line 22, in <module> import kwant.qsymm File "/tmp/kwant-1.4.0/debian/python3-kwant/usr/lib/python3.6/dist-packages/kwant/qsymm.py", line 30, in <module> raise ImportError(msg) from error ImportError: 'kwant.qsymm' is not available because one or more of its dependencies is not installed. Makefile:72: recipe for target 'html' failed make[2]: *** [html] Error 1 make[2]: Leaving directory '/tmp/kwant-1.4.0/doc' debian/rules:25: recipe for target 'override_dh_installdocs' failed make[1]: *** [override_dh_installdocs] Error 2 make[1]: Leaving directory '/tmp/kwant-1.4.0' debian/rules:7: recipe for target 'binary' failed make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 E: Build command 'cd kwant-1.4.0 && dpkg-buildpackage -b -uc' failed. I tried to install separately the module qsymm but I couldn't. The instruction pip install qsymm did not work. Kind regards, Leo
Victor Fernandez Becerra wrote:
I am having problems with the installation of kwant in linux mint 19.1
Hi, sorry for the late reply... Since we do not provide binary Debian packages for Linux Mint, it's a matter of luck whether any of the DEBs that we do provide will work. Linux Mint 19 seems to be based on Ubuntu 18.04 "bionic", so your best bet is to try to install the Ubuntu bionic DEBs as described in https://kwant-project.org/install#ubuntu-and-derivatives. If these instructions don't apply on Mint, it should be possible to add the packages directly to your /etc/apt/sources.list file with the following lines: deb http://ppa.launchpad.net/kwant-project/ppa/ubuntu bionic main deb-src http://ppa.launchpad.net/kwant-project/ppa/ubuntu bionic main For reference, here is our Ubuntu PPA home page: https://launchpad.net/~kwant-project/+archive/ubuntu/ppa Building the packages from source should also work, see below.
This is what I did:
1. Move to the /tmp folder
2. Executed successfully the command, apt-get build-dep tinyarray kwant
3. Executed successfully the command, apt-get source --compile tinyarray
3. Had a problem with the command apt-get source --compile kwant, that showed me the following error
I do not know why installation of qsymm through pip did not work, but you should be able to install everything using Debian source packages. The problem you are experiencing occurs while the documentation package is being built. The documentation process tries to document qsymm, but it is not available for stretch-backports. (Qsymm needs a newer SciPy than the one available there.) When building the backports myself I cheated a bit and simply disabled the building of python-kwant-doc. (Had I modified the source package instead, you wouldn't see the problem.) You should be able to overcome the problem in one of the following two ways. (1) Use the source packages for "testing" instead of the ones for "stretch-backports". There, qsymm is available. (2) Run "apt-get source" without the --compile option. Then, enter the source dir, and compile the package using the command "debuild -- binary-arch". This disables the building of the documentation package. Please let us know if you run into problems. Christoph
participants (2)
-
Christoph Groth
-
Victor Fernandez Becerra