
Dear Brendan, the Windows packages were kindly provided by Christoph Gohlke (http://www.lfd.uci.edu/~gohlke/pythonlibs/). He compiled the packages for the official CPython distribution, i.e. the python you can download from python.org. It is in fact likely that these packages are not compatible to other Python distributions (everything has to be compiled the same way, and for distributions such as from Canopy one simply does not know how they are compiled). It is thus very likely that this is the problem you encounter. Would you mind switching to the standard python and using the Gohlke packages? As for speed, there shouldn't be a significant difference to Canopy, as both use MKL. That said, it might still be interesting to hear how you actually installed kwant there - with the Canopy version of pip? What was the output of installation? I'm just wondering if it might be due to some mixup of 32 and 64bit. Best, Michael On 13.02.2015 02:01, Brendan wrote:
Michael Wimmer <wimmer <at> lorentz.leidenuniv.nl> writes:
Dear kwant users,
we have posted new instructions for installing kwant on Windows on the kwant website: http://www.kwant-project.org/install
The old instructions do not work any more, as the format of the python packages on Christoph Gohlke's webpage have changed.
Best regards,
the kwant team
Dear Kwant Team & Community,
Would it be possible for you to provide me with guidance regarding install of Kwant?
Details are posted below. Thanks!
Brendan ______
I am trying to run Kwant on Windows 7 with a clean, recent install of Enthought Canopy (1.5.1 64 bit). I have no problem verifying installation of the package tinyarray, but an attempt to import kwant always fails. I suspect its an environment variable, but I'm not a code jock or an admin jock.
Here are the errors that are being reported:
C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\__init__.py in <module>() 12 'digest', 'rmt'] 13 for module in __all__: ---> 14 exec 'from . import {0}'.format(module) 15 16 from .version import version as __version__
<string> in <module>()
C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\system.py in <module>() 15 import types 16 from copy import copy ---> 17 from . import physics, _system 18 19
C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\physics\__init__.py in <module>() 12 __all__ = [] 13 for module in ['leads', 'dispersion', 'noise']: ---> 14 exec 'from . import {0}'.format(module) 15 exec 'from .{0} import *'.format(module) 16 exec '__all__.extend({0}.__all__)'.format(module)
<string> in <module>()
C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\physics\leads.py in <module>() 14 import numpy.linalg as npl 15 import scipy.linalg as la ---> 16 from .. import linalg as kla 17 18 dot = np.dot
C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\linalg\__init__.py in <module>() 8 9 __all__ = ['lapack'] ---> 10 from . import lapack 11 12 # Merge the public interface of the other submodules.
ImportError: DLL load failed: The specified module could not be found.