Giter VIP home page Giter VIP logo

Comments (5)

plimkilde avatar plimkilde commented on June 12, 2024

Appears to be caused by this change introduced in Python 3.8:

DLL dependencies for extension modules and DLLs loaded with ctypes on Windows are now resolved more securely. Only the system paths, the directory containing the DLL or PYD file, and directories added with add_dll_directory() are searched for load-time dependencies. Specifically, PATH and the current working directory are no longer used, and modifications to these will no longer have any effect on normal DLL resolution. If your application relies on these mechanisms, you should check for add_dll_directory() and if it exists, use it to add your DLLs directory while loading your library. Note that Windows 7 users will need to ensure that Windows Update KB2533623 has been installed (this is also verified by the installer). (Contributed by Steve Dower in bpo-36085.)

from dhmqc.

plimkilde avatar plimkilde commented on June 12, 2024

Strangely enough, this only seems to affect libdelaunator.dll, not the other DLLs in that directory.

from dhmqc.

plimkilde avatar plimkilde commented on June 12, 2024

Sigh... This error seems to be another case of misleading "missing DLL" messages on Windows.

Unlike the other DLLs in its directory, libdelaunator.dll currently has dependencies on DLLs for MinGW's C and C++ standard libraries.

The error message masks the actual error, which is failure to resolve those MinGW DLLs (on my machine, libgcc_s_seh-1.dll and libstdc++-6.dll) under Python 3.8's stricter rules.

As a workaround for now, DHMQC can be installed in an Conda environment with Python pinned to 3.7 (add python=3.7 to the packages to install).

from dhmqc.

plimkilde avatar plimkilde commented on June 12, 2024

Behaviour regarding the misleading error message reported to Python's issue tracker here: https://bugs.python.org/issue39393

from dhmqc.

plimkilde avatar plimkilde commented on June 12, 2024

It seems only Python 3.8 (and not 3.9+) is fussy about DLL paths here, so I'm going to take the easy way out and support only 3.9 and 3.10 😄

from dhmqc.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.