New instructions for Windows installation
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
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.
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.
Michael Wimmer <wimmer <at> lorentz.leidenuniv.nl> writes:
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.
Hi Michael & Kwant Team, I tried running kwant again, but fail. My system is Python 2.7.10 | 64-bit | (default, Oct 21 2015, 17:08:47) [MSC v.1500 64 bit (AMD64)] running inside Jupyter Notebook server 4.0.6. Here are versions of relevant libraries that are running: kwant==1.1.1 nose==1.3.4 numpy==1.9.2 scipy==0.16.1 six==1.10.0 tinyarray==1.1.0 matplotlib==1.5.1 Except for nose and kwant, I validated functionality of all packages within the Jupyter notebook. I validated that nose is operable from a shell. The surprising thing to me is that tinyarray worked. After executing jupyter notebook --matplotlib=inline from my kwant directory, I execute "import kwant". I receive the following output: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-2e77c8a8f09d> in <module>() ----> 1 import kwant C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\__init__.py in <module>() 30 31 for module in ['system', 'builder', 'lattice', 'solvers', 'digest', 'rmt']: ---> 32 exec 'from . import {0}'.format(module) 33 __all__.append(module) 34 <string> in <module>() C:\Users\Brendan\AppData\Local\Enthought\Canopy\User\lib\site- packages\kwant\lattice.py in <module>() 17 import tinyarray as ta 18 from . import builder ---> 19 from .linalg import lll 20 from ._common import ensure_isinstance 21 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. I did check the site-package and compare it to the github version. I couldn't find an issue. Thanks for your help and best regards. Brendan McDougall
participants (3)
-
Brendan
-
Brendan McDougall
-
Michael Wimmer