collide.py 213行报错,FileNotFoundError: [WinError 2] 系统找不到指定的文件。

#5 · open · 6 comments

View on GitHub ↗

xk-mt

报错 File "C:\Users\17569\Desktop\md5\sha1collider-master\collide.py", line 213, in doit subprocess.check_call(['gs', '-r%d' % args.resolution, '-sDEVICE=png16m', 原因 我使用win10命令,没有gs命令,gs是linux中的,gs命令可以将PostScript文件转换为PDF文件,或者将PDF文件转换为其他格式,如JPEG、PNG、TIFF等,导致报错,希望可以兼容win0用户 ![image](https://github.com/nneonneo/sha1collider/assets/77874955/a198fbd5-ec43-46e0-a998-431d41c6d4ae)

Comments

nneonneo

You can install GhostScript for Windows: https://ghostscript.com/releases/gsdnld.html

xk-mt

> 您可以安装适用于 Windows 的 GhostScript:https://ghostscript.com/releases/gsdnld.html 非常感谢❤

EduLeonPavon

Hi. I have the same problem. I have installed Ghostscript but it doesn't seem to work.

nneonneo

@EduLeonPavon I'm going to need more details to help with the problem. Are you also on Windows? Is it crashing on the same line of code with the same error? If not, I'll need details of your platform and on the error that you are getting. Also, please ensure that the directory containing GhostScript's `gs` program is on your PATH; you can learn more about editing PATH here: https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them.

EduLeonPavon

Hi again @nneonneo. I finally got it running from Kali Linux. Here is the video where I talk about SHA1Collider. Thank you very much for developing this program. It has been very useful. [https://miperitoinformatico.com/por-que-no-se-puede-usar-el-algoritmo-sha1-para-firma-electronica-reconocida/](https://miperitoinformatico.com/por-que-no-se-puede-usar-el-algoritmo-sha1-para-firma-electronica-reconocida/)

nneonneo

@EduLeonPavon Thanks! Would you mind mentioning how you got it to work? That will be very helpful for future readers :)