Skip to content
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

error: metadata-generation-failed, pypcap is not installing #112

Open
chaurasiyag opened this issue Sep 28, 2022 · 1 comment
Open

error: metadata-generation-failed, pypcap is not installing #112

chaurasiyag opened this issue Sep 28, 2022 · 1 comment

Comments

@chaurasiyag
Copy link

chaurasiyag commented Sep 28, 2022

I got this error while installing pypcap using pip and pip3 both .

 pip3 install pypcap
Defaulting to user installation because normal site-packages is not writeable
Collecting pypcap
  Downloading pypcap-1.3.0.tar.gz (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 157.4 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      pcap.h not found
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.



 pip install pypcap 
Defaulting to user installation because normal site-packages is not writeable
Collecting pypcap
  Using cached pypcap-1.3.0.tar.gz (140 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      pcap.h not found
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@chaurasiyag chaurasiyag changed the title pypcap is not installing error: metadata-generation-failed, pypcap is not installing Sep 28, 2022
@FeldrinH
Copy link

I think installing from pip is broken on Windows and you have to install from source with the Npcap SDK, but it would be great if one of the maintainers could confirm this (and maybe also update the documentation to reflect this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants