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

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

Open
xk-mt opened this issue Apr 28, 2024 · 6 comments

Comments

@xk-mt
Copy link

xk-mt commented Apr 28, 2024

报错
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

@nneonneo
Copy link
Owner

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

@xk-mt
Copy link
Author

xk-mt commented Apr 29, 2024

您可以安装适用于 Windows 的 GhostScript:https://ghostscript.com/releases/gsdnld.html

非常感谢❤

@EduLeonPavon
Copy link

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

@nneonneo
Copy link
Owner

@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
Copy link

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/

@nneonneo
Copy link
Owner

nneonneo commented Oct 5, 2024

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

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

3 participants