-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need hook for pypcap on windows #512
Comments
This looks like not all required files are packages. Please have a look at Make sure everything is packaged correctly for tips to find out what is missing. Esp use We would appreciate if you'd submit a hook for this. See https://pyinstaller.readthedocs.org/en/latest/hooks.html for more information about how to implement hooks. |
my englist is bad. |
Did you install the Windows 10 SDK? I'm pretty sure I had the same issue with an executable not running on a different computer when I hadn't included the ucrt files: Update the pathex line in your spec file to include the ucrt dlls. x86: (32-bit windows) x64: (64-bit windows) |
Accidentally ,I solved the problem. but,build time, import pcap. |
Can anyone tell me if this is possible? |
@arossert See above: You need to create a hook. |
@htgoebel thanks for the response but can you please point me to how can I achieve this with a hook? From this conversation, it is hard to understand what needs to be done. |
Just read hte manual an look at other hooks. You need to add the dll as |
@htgoebel I have tried to manually copy the files that are installed from Npcap to the target PyInstaller directory but still getting the DLL error exception.
if the target machine has no Npcao/winpcap installed it is throwing the DLL exception. |
You don't need |
@bjones1 thanks, this was my mistake.
If I install the winpcap/npcap library and remove the DLLs from my application directory it is working so I'm not sure that it is even possible. It might be because I have built it on win7 and tested it on win10, is there a way to make it portable? UPDATE: I wanted a way to include everything and not instruct the users of my application to install another library in order to use it. If there is anything else that I can do to make it work I'm willing to spend the time testing it but currently I'm stuck. |
i try build exe with pyinstaller.
the test.py is
print('hello')
the warntest.txt
dist test.exe work on some computer.
then i try add code with pypcap:
pyinstaller test.py
dist test.exe worked on my build computer.
the other computer prompt DLL load failed:
the line 10 is :
import pcap
so i try other way :
pyinstaller.exe --hidden-import pcap test.py
pyinstaller.exe -p D:\PythonEnvi\Lib\site-packages --hidden-import pcap D:\PythonTest\test.py
https://github.com/pynetwork/pypcap
the pcap homepage.
windows10 Home 64bit
python 3.63
pyinstaller 3.3.1
pypcap 1.20
npcap 0.98 installer
npcap sdd 0.1
Microsoft Visual C++ Build Tools 2015
The text was updated successfully, but these errors were encountered: