pre2k icon indicating copy to clipboard operation
pre2k copied to clipboard

Error while installing with pip (hash mismatch)

Open buu-huu opened this issue 1 year ago • 1 comments

When trying to install pre2k via pip, I'm getting an error message:

pip install .
Processing c:\dev\pre2k-main
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting impacket==0.10.0 (from pre2k==3.0)
  Using cached impacket-0.10.0.tar.gz (1.4 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    impacket==0.10.0 from https://files.pythonhosted.org/packages/c9/31/835e095d3ed804bbc22e96db2d999045608cbfdab653b1d19af65973fb33/impacket-0.10.0.tar.gz (from pre2k==3.0):
        Expected sha256 b8eb020a2cbb47146669cfe31c64bb2e7d6499d049c493d6418b9716f5c74583
             Got        e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

I understand, that the expected hash of the impacket lib does not match the provided one. Should I change the hash in the expected hash in the requirements file?

buu-huu avatar May 10 '24 07:05 buu-huu

Using cached impacket-0.10.0.tar.gz (1.4 MB)

Can you try reinstalling impacket? I can't duplicate this and feel it's likely related to your cached version

garrettfoster13 avatar May 10 '24 15:05 garrettfoster13