GithubHelp home page GithubHelp logo

Comments (5)

yglukhov avatar yglukhov commented on May 16, 2024

Nimpy tries to find a suitable python dll among those already linked to current process. Insert an echo "Candidate: ", fn here: https://github.com/yglukhov/nimpy/blob/master/nimpy.nim#L572, and see how your python.dll is actually named.

from nimpy.

raghur avatar raghur commented on May 16, 2024

I got

Candidate: D:\sdks\python36\python3.exe                                
Candidate: C:\WINDOWS\SYSTEM32\ntdll.dll                               
Candidate: C:\WINDOWS\system32\KERNEL32.DLL                            
Candidate: C:\WINDOWS\system32\KERNELBASE.dll                          
Candidate: C:\WINDOWS\System32\SYSFER.DLL                              
Candidate: D:\sdks\python36\python36.dll                               
Candidate: D:\sdks\python36\VCRUNTIME140.dll                           
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-runtime-l1-1-0.dll       
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-math-l1-1-0.dll          
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-stdio-l1-1-0.dll         
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-locale-l1-1-0.dll        
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-heap-l1-1-0.dll          
Candidate: C:\WINDOWS\system32\ADVAPI32.dll                            
Candidate: C:\WINDOWS\SYSTEM32\VERSION.dll                             
Candidate: C:\WINDOWS\system32\SHLWAPI.dll                             
Candidate: C:\WINDOWS\system32\WS2_32.dll                              
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-string-l1-1-0.dll        
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-convert-l1-1-0.dll       
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-time-l1-1-0.dll          
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-environment-l1-1-0.dll   
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-process-l1-1-0.dll       
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-conio-l1-1-0.dll         
Candidate: C:\WINDOWS\SYSTEM32\api-ms-win-crt-filesystem-l1-1-0.dll    
Candidate: C:\WINDOWS\system32\msvcrt.dll                              
Candidate: C:\WINDOWS\SYSTEM32\sechost.dll                             
Candidate: C:\WINDOWS\system32\RPCRT4.dll                              
Candidate: C:\WINDOWS\SYSTEM32\combase.dll                             

...
<344 lines in total - mostly python36.exe>

which has python36.dll - so what's not working?

from nimpy.

yglukhov avatar yglukhov commented on May 16, 2024

Ah i see, try replace find with rfind here: https://github.com/yglukhov/nimpy/blob/master/nimpy.nim#L573

from nimpy.

raghur avatar raghur commented on May 16, 2024

I think it's because the path has python earlier; replacing find with rfind in L573 seems to find the right dll.

EDIT: you beat me to the comment

from nimpy.

yglukhov avatar yglukhov commented on May 16, 2024

nice

from nimpy.

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.