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

After compiled to exe - Error: [Errno 2] No such file or directory: '/Windows\\System32\\test.txt' #7

Open
stevenfonz opened this issue Aug 8, 2021 · 1 comment

Comments

@stevenfonz
Copy link

Hi,

I would like to ask why would we observe this error? Is there any workaround?

Before compilation, we can calc the hash. Please see below.
/Windows\System32\test.txt
SHA1= 403926033d001b5279df37cbbe5287b7c7c267fa

After compiltation, the compiled exe program throw the following error.
Error: [Errno 2] No such file or directory: '/Windows\System32\test.txt'

@stevenfonz stevenfonz changed the title After compiled by pyinstaller - Error: [Errno 2] No such file or directory: '/Windows\\System32\\test.txt' After compiled to exe - Error: [Errno 2] No such file or directory: '/Windows\\System32\\test.txt' Aug 9, 2021
@stefan6419846
Copy link

You should probably elaborate what you are actually meaning with compilation? With which tool? How do you use filehash there?

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