(help request) Windows 7 Install:

Hi Kwant Team, I tried running kwant again, but fail. <SIGH> (I posted this note as a reply to my original post about 48 weeks ago, but wasn't sure that that reply would feed properly. My apologizes if you see this post twice.) 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. on Windows 7 Professional 64 bit OS. 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 PS: in the event that a complete package list is useful, I append here. -registry-path==1.0 appinst==2.1.5 apptools==4.3.0 atom==0.3.9 backports-abc==0.4 backports.ssl-match-hostname==3.2a3 Canopy==1.6.1 canopy-dashboard==0.4.2 canopy-packman-plugin==0.1.3 canopy-platform==0.8.0b1 CanopyDebugger==0.1.2.dev0 casuarius==1.1 certifi==2015.11.20.1 chaco==4.5.0 click==4.0 cloud==2.4.6 configobj==5.0.6 cycler==0.9.0 decorator==4.0.4 distribute-remove==1.0.0 Django==1.9.1 docutils==0.12 enable==4.5.1 enaml==0.9.8 enapp==1.0.0 enclosure==0.2 encore==0.6.0 enstaller==4.8.10 envisage==4.4.0 esky==0.9.8 etsproxy==0.1.2 Examples==7.3 faulthandler==2.4 feedparser==5.2.0 futures==2.2.0 grits-client==0.1 hatcher==0.8.7 idle==2.7.3 ipykernel==4.2.0 ipyparallel==4.1.0 ipython==4.0.0 ipython-genutils==0.1.0 ipython4==4.0.1 ipywidgets==4.1.1 jigna==0.9.5 Jinja2==2.8 jsonpickle==0.4.0 jsonschema==2.4.0 jupyter==1.0.0 jupyter-client==4.1.1 jupyter-console==4.0.3 jupyter-core==4.0.6 kernmagic==0.2.0 keyring==4.0 kiwisolver==0.1.3 kwant==1.1.1 libsodium==1.0.3 MarkupSafe==0.23 matplotlib==1.5.1 mistune==0.7.1 MKL==10.3 mysqlclient==1.3.7 nbconvert==4.1.0 nbformat==4.0.1 nose==1.3.4 notebook==4.0.6 numpy==1.9.2 okonomiyaki==0.9.0 pandas==0.17.1 path.py==8.1.1 pickleshare==0.5 PIL-remove==1.0.0 pillow==3.0.0 ply==3.8 psutil==2.2.1 pyaudio==0.2.4 pycrypto==2.6.1 pyface==5.0.0 pyflakes==0.4.5 pyglet==1.1.4 Pygments==2.0.2 pyparsing==2.0.3 pyreadline==2.1 PySide==1.2.2 python-dateutil==2.4.2 PythonDoc==2.7.3 pytz==2015.7 pywin32==219.0.0 PyYAML==3.11 pyzmq==15.1.0 qtconsole==4.1.1 requests==2.9.0 scipy==0.16.1 seaborn==0.6.0 shiboken==1.2.2 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.10.0 ssl-match-hostname==3.4.0.2 supplement==0.5.dev0 sympy==0.7.6.1 tabulate==0.7.3 tinyarray==1.1.0 tornado==4.3 traitlets==4.0.0 traits==4.5.0 traitsui==5.0.0 virtualenv==13.1.2 wxPython==3.0.2.0 zeromq==4.1.3 zipfile2==0.0.8

Hi Brendan, The error message that you get [1] signals that the module kwant.linalg.lapack cannot be imported. This is the extension module that is created from the source file kwant/linalg/lapack.pyx. On Windows it should have the file name kwant/linalg/lapack.dll, I believe. Can you tell us how exactly you installed Kwant? Are you building Kwant yourself (i.e. using setup.py or pip)? Can you provide a log of installation? Christoph [1] “ImportError: DLL load failed: The specified module could not be found.”

Hi Christoph, Thanks for your support! I am perplexed regarding my attempts at installing kwant on windows. TinyArray is functional and the import for TinyArray also calls a DLL file with a .pyd extension. TinyArray demonstrates that my installation can find and does load DLL files from within Jupyter notebook. The log file for kwant install was not that informative. I did however uninstall kwant and reinstall kwant. The uninstall log is more informative. I've attached some PNG files and the log files for your review. For installation, I executed from CLIpip -v --log log_kwantInstall.txt install --no-deps kwant-1.1.1-cp27-none-win_amd64.whl Again, thanks for your time reviewing my particular install issue, and best regards. Sincerely, Brendan McDougall On Friday, January 15, 2016 6:07 AM, Christoph Groth <christoph.groth@cea.fr> wrote: Hi Brendan, The error message that you get [1] signals that the module kwant.linalg.lapack cannot be imported. This is the extension module that is created from the source file kwant/linalg/lapack.pyx. On Windows it should have the file name kwant/linalg/lapack.dll, I believe. Can you tell us how exactly you installed Kwant? Are you building Kwant yourself (i.e. using setup.py or pip)? Can you provide a log of installation? Christoph [1] “ImportError: DLL load failed: The specified module could not be found.”

Hi Christoph, For the tests that I described in my email, I was using Enthought Canopy as my IDE. Last year, I also tried running kwant from inside Enthought Canopy and failed. Last year, Michael Wimmer suggested that perhaps the issue was with Canopy. Topday, I augmented my Eclipse IDE for Java Developers with the PyDev installation. I also newly installed Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] Essentially, I uninstalled Enthought Canopy, configured my PyDev to use the site-packages associated with the Canopy installation. Initial attempt to use Kwant failed, so I uninstalled kwant from the Canopy site package using pip. I installed again kwant, but into the Eclipse/Python2.7.11 framework using its pip installer. When I tried "import kwant" from the interactive shell, I essentially hit the same traceback error messages that I shared with you from two different attempts earlier this week. I also executed the same pip install command, i.e. pip -v --log log_kwantInstall_011616.txt install --no-deps kwant-1.1.1-cp27-none-win_amd64.whl I claim that the issue happens at the same place with either IDE: loading lapack dll fails. Again, the interesting thing is that tinyarray also loads a .pyd file and import tinyarray is successful within the Eclipse/PyDev framework. Attached is a new set of files logging the migration to Eclipse. Thanks for any help and guidance that you may provide. Best regards. Brendan On Friday, January 15, 2016 1:28 PM, Brendan McDougall <bamcdougall@yahoo.com> wrote: Hi Christoph, Thanks for your support! I am perplexed regarding my attempts at installing kwant on windows. TinyArray is functional and the import for TinyArray also calls a DLL file with a .pyd extension. TinyArray demonstrates that my installation can find and does load DLL files from within Jupyter notebook. The log file for kwant install was not that informative. I did however uninstall kwant and reinstall kwant. The uninstall log is more informative. I've attached some PNG files and the log files for your review. For installation, I executed from CLIpip -v --log log_kwantInstall.txt install --no-deps kwant-1.1.1-cp27-none-win_amd64.whl Again, thanks for your time reviewing my particular install issue, and best regards. Sincerely, Brendan McDougall On Friday, January 15, 2016 6:07 AM, Christoph Groth <christoph.groth@cea.fr> wrote: Hi Brendan, The error message that you get [1] signals that the module kwant.linalg.lapack cannot be imported. This is the extension module that is created from the source file kwant/linalg/lapack.pyx. On Windows it should have the file name kwant/linalg/lapack.dll, I believe. Can you tell us how exactly you installed Kwant? Are you building Kwant yourself (i.e. using setup.py or pip)? Can you provide a log of installation? Christoph [1] “ImportError: DLL load failed: The specified module could not be found.”
participants (2)
-
Brendan McDougall
-
Christoph Groth