GithubHelp home page GithubHelp logo

cant find libsodium.dll on windows about pysodium HOT 6 OPEN

stef avatar stef commented on September 25, 2024
cant find libsodium.dll on windows

from pysodium.

Comments (6)

covert-encryption avatar covert-encryption commented on September 25, 2024 2

Could you modify this package so that it includes libsodium? https://github.com/pyca/pynacl/ works out of the box on any platform but they lack many of the functions (as does this one, although different ones, go figure - but at least this one is being developed while pynacl hasn't released since May 2020). Certainly you can take from their Github whatever is needed to make it work without installing DLLs by hand?

from pysodium.

stef avatar stef commented on September 25, 2024

i think it would be worthwhile to find out why this dll is not found on your system, even as you say you put it into various places. as far as i understand loadlibrary should load the libraries from where your system normally stores them. if loadlibrary cannot find the library then it's probably in the wrong place. i have little experience with windows, but i seem to remember your libraries need to be on the path, have you tried putting the lib in system32 i think that should be by default on the path. otherwise i read by googling that setx path also alters the path system-wise. but i'm really guessing here i have no idea about windows.

from pysodium.

stef avatar stef commented on September 25, 2024

i'm not sure sys.path is the right path to check, sys.path is for python modules, libsodium is not a python module. is it possible that it would be enough to pass 'libsodium-64' to ctypes.util.find_library? and have the library in any of the directories where windows is looking for dlls normally?

from pysodium.

stef avatar stef commented on September 25, 2024

If windows does have something similar to $LD_LIBRARY_PATH it might make sense to set that instead correctly.

from pysodium.

robehickman avatar robehickman commented on September 25, 2024

Would it be possible to parameterize the import so that the user of the library could specify the path to where the DLL is? I'm not immediately sure how to do that given that python lacks parametrized imports and pysodium imports the lib automatically without requiring something like an init() call.

from pysodium.

stef avatar stef commented on September 25, 2024

sorry i have no access to windows hosts.

from pysodium.

Related Issues (20)

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.