question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Windows error "FileNotFoundError"

See original GitHub issue

Just installed the package and copied the exact usage example from the docs (active layer). Windows throws this WinError 2 error because apparently I have a 32 bits Python and it’s looking for Photoshop as if it was also 32 bits (which is is not) according to this stack overflow issue.

Using the suggested answer of adding the argument access=winreg.KEY_READ | winreg.KEY_WOW64_64KEY inside the function _get_install_version in _core.py worked for me.

key = winreg.OpenKey(
        winreg.HKEY_LOCAL_MACHINE,
        self.REG_PATH,
        access=winreg.KEY_READ | winreg.KEY_WOW64_64KEY
)

Just in case: Using Windows 10, Python 3.7 and version 0.6.0 of this package.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
loonghaocommented, Mar 30, 2020

once again Thank for your report, I will update the logic later, I find it may be more accurate to use environment variables to determine. image

0reactions
allcontributors[bot]commented, Jun 25, 2020

@loonghao

I’ve put up a pull request to add @tubi-carrillo! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows FileNotFoundError: [Errno 2] No such file or ...
I want to use 'os.path.join' to open a file, the file exists, but I can not open it and get an error "FileNotFoundError"...
Read more >
FileNotFoundError: [Errno 2] No such file or directory
The error "FileNotFoundError: [Errno 2] No such file or directory" is telling you that there is no file of that name in the...
Read more >
File Not Found Error In Preview but the File IS There
I get an error that says "File Not Found Error It may have been moved, edited, or deleted" ERR_FILE_NOT_FOUND I'm getting this in...
Read more >
How to Repair Error 15 File Not Found Issue in Windows
Summary: 'Error 15: file not found' error appears due to hard drive corruption, malware attack, or when a certain file from the operating ......
Read more >
How to Fix File Not Found Windows 10 Error
Right-click on command prompt and select Run as Administrator. Type sfc/scannow command and press Enter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found