GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cannot import scipy with WinPython 2020-01 on Windows 10 · Issue #828 · winpython/winpython

cannot import scipy with WinPython 2020-01 on Windows 10 #828

New issue
Copy link
New issue
Copy link
Closed
Closed
cannot import scipy with WinPython 2020-01 on Windows 10#828
Copy link
Milestone
2020-02 Jupyterlab-1.2 / Pytorch-1.5 / Tensorflow-2.2

Description

@makazhan
makazhan
opened on Apr 5, 2020
Issue body actions

here's what I get in both Python 3.8.2 and 3.7.7 after executing import scipy:

Traceback (most recent call last):

  File "<ipython-input-1-4363d2be0702>", line 1, in <module>
    import scipy

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\__init__.py", line 156, in <module>
    from . import fft

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\fft\__init__.py", line 76, in <module>
    from ._basic import (

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\fft\_basic.py", line 1, in <module>
    from scipy._lib.uarray import generate_multimethod, Dispatchable

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\_lib\uarray.py", line 27, in <module>
    from ._uarray import *

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\_lib\_uarray\__init__.py", line 114, in <module>
    from ._backend import *

  File "C:\WPy64-3820\python-3.8.2.amd64\lib\site-packages\scipy\_lib\_uarray\_backend.py", line 15, in <module>
    from . import _uarray  # type: ignore

ImportError: DLL load failed while importing _uarray: The specified module could not be found.

Activity

  1. stonebig commented on Apr 5, 2020

    @stonebig
    stonebig
    on Apr 5, 2020
    Contributor
    More actions

    Hum, that is strange. Are you on Windows 10 ?

  2. stonebig commented on Apr 5, 2020

    @stonebig
    stonebig
    on Apr 5, 2020
    Contributor
    More actions

    I found someone with the opposite problem ... maybe try the opposite, try with Anaconda

    numpy/numpy#12957 (comment)

    Another internet suggests maybe your path variable is too long

  3. dlzcn commented on Apr 8, 2020

    @dlzcn
    dlzcn
    on Apr 8, 2020
    More actions

    Run perfectly on my PC, but failed with same errors on my laptop. Both of them are running Windows 10. I checked length of the path variable on my PC, it is 1715 characters. Not sure the size of the variable on my laptop.

  4. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    Hum, maybe search then try your question on stackoverflow.

    Another shot in the dark would be to retry after moving your directory:

    • to you user space: C:/users/???/
    • or to a non-C drive

    other ideas are: another Python system installed create troubles, your initial installation has lost a dll, ...

  5. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    are you using pycharm ? psycopg/psycopg2#1014 (comment)

  6. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    hum, that may just be a python-3.8 change : now, Python- 3.8 doesn't look for a dll out of system unless explicitly told.

    as a blind guess, I suggest you retry with a python-3.7 distribution, as it tackles DLL differently

  7. dlzcn commented on Apr 8, 2020

    @dlzcn
    dlzcn
    on Apr 8, 2020
    More actions

    Switched to python-3.7 distriubtion.

    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\sklearn_init_.py", line 82, in
    from .base import clone
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\sklearn\base.py", line 20, in
    from .utils import IS_32BIT
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\sklearn\utils_init
    .py", line 20, in
    from scipy.sparse import issparse
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy_init_.py", line 156, in
    from . import fft
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy\fft_init_.py", line 76, in
    from ._basic import (
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy\fft_basic.py", line 1, in
    from scipy._lib.uarray import generate_multimethod, Dispatchable
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy_lib\uarray.py", line 27, in
    from .uarray import *
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy_lib_uarray_init
    .py", line 114, in
    from ._backend import *
    File "D:\python\WPy64-3770\python-3.7.7.amd64\lib\site-packages\scipy_lib_uarray_backend.py", line 15, in
    from . import _uarray # type: ignore
    ImportError: DLL load failed: The specified module could not be found.

  8. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    Well, I'm out of ideas at the moment. Having a working PC and a not-working Laptop shall allow you to enumerate what's different between them: tiny memory, very very slow processor, another Python distro, a virulant anti-virus, ...

  9. dlzcn commented on Apr 8, 2020

    @dlzcn
    dlzcn
    on Apr 8, 2020
    More actions

    2020-04-08 21_13_30

    It's VC runtime issue, happens one of them is missing from my PC. Fixed after installing the lastest file from https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

    Maybe need to update the instructions. Win10 users also need to pay attention to this requirement.

  10. makazhan commented on Apr 8, 2020

    @makazhan
    makazhan
    on Apr 8, 2020
    Author
    More actions

    2020-04-08 21_13_30

    It's VC runtime issue, happens one of them is missing from my PC. Fixed after installing the lastest file from https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

    Maybe need to update the instructions. Win10 users also need to pay attention to this requirement.

    Thanks! It fixed the issue on my laptop Win10 for both Python 3.7 and 3.8.

  11. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    hum, I include vcruntime140.dll . I may have missed some news ? ... yes

    I'll include it, not sure if it's of help, or if anyway the download is needed.

    there is a whole list of dlls now, not sure what to do of them:

    • vcruntime140_1.dll
    • vcruntime140d.dll
    • vcomp140d.dll
    • vccorlib140d.dll

    ok ,"d" is for debug: https://stackoverflow.com/questions/39010509/vcruntime140-dll-vs-vcruntime140d-dll

  12. stonebig
    added a commit that references this issue on Apr 8, 2020

    dll issue mitigation

    6b7b6ed
  13. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    So the vcruntime140_1.dll will be in next binaries, even if I'm not sure it solves the problem.

    It's a bit odd to have every user needing to install a microsoft executable.

  14. stonebig
    added a commit that references this issue on Apr 8, 2020

    per caution, suggesting windows 10 users may have to do it too

    09747f3
  15. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    two actions done. Hope it will help. Thanks a lot @dlzcn for the inquiry.

    what tool did you use to see the dll missing ?

    https://stackoverflow.com/questions/7378959/how-to-check-for-dll-dependency

  16. dlzcn commented on Apr 8, 2020

    @dlzcn
    dlzcn
    on Apr 8, 2020
    More actions

    what tool did you use to see the dll missing ?

    https://stackoverflow.com/questions/7378959/how-to-check-for-dll-dependency

    I am using dependencies, you can fine it from https://lucasg.github.io/Dependencies/

  17. stonebig commented on Apr 8, 2020

    @stonebig
    stonebig
    on Apr 8, 2020
    Contributor
    More actions

    Ok, thanks again.

  18. stonebig
    closed this as completedon Apr 8, 2020
  19. stonebig
    added this to the 2020-02 Jupyterlab-1.2 / Pytorch-1.5 / Tensorflow-2.2 milestone on Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 2020-02 Jupyterlab-1.2 / Pytorch-1.5 / Tensorflow-2.2

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.