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

linecache error on reset #92

Open
mottosso opened this issue Aug 7, 2019 · 0 comments
Open

linecache error on reset #92

mottosso opened this issue Aug 7, 2019 · 0 comments
Labels
bug Something isn't working cosmetics

Comments

@mottosso
Copy link
Owner

mottosso commented Aug 7, 2019

Sometimes this happens; it's likely due to how Rez chooses to clear the in-memory cache, which Allzpark is doing on each reset. It looks like it's actually clearing Python's internal memory, which seems to confuse Python.

"C:\Users\marcus\packages\python\3.7.3\platform-windows\arch-AMD64\app\lib\inspect.py", line 955, in getsourcelines lines, lnum = findsource(object) File "C:\Users\marcus\packages\python\3.7.3\platform-windows\arch-AMD64\app\lib\inspect.py", line 771, in findsource linecache.checkcache(file) File "C:\Users\marcus\packages\python\3.7.3\platform-windows\arch-AMD64\app\lib\linecache.py", line 79, in checkcache del cache[filename] 'C:\\Users\\marcus\\packages\\pack\\4.0.4\\package.py'

Workaround

Simply resetting again clears the issue.

@mottosso mottosso added bug Something isn't working cosmetics labels Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cosmetics
Projects
None yet
Development

No branches or pull requests

1 participant