Created attachment 802618 [details] Shows Emerge with errors given and info Emerge seems to errors when trying to install Python modules, giving "ACCESS DENIED: open_wr" and having paths such as "/usr/lib/python3.9/site-packages/" For me, it's done this with both Lutris version 0.5.10.1 and version 0.5.11; version 0.5.9.1 worked, but that's an older version that is no longer provided by Portage it would seem.
1. Could you verify your clock is correct? (share "date -u" output) 2. What does qfile -o /usr/lib/python3.*/site-packages/*/* give?
When running "date -u" I get "Thu Sep 1 10:31:28 PM UTC 2022" The "qfile" command returns nothing.
To clarify, I did run with all the parameters you specified, as I just copied and pasted it into my terminal emulator.
Why is PYTHONPATH="/usr/lib/python3.9/site-packages" in emerge --info?
Is that not supposed to be there? I'm not sure exactly what would've set it like that to be honest.
(In reply to kingrustyofxlan from comment #5) > Is that not supposed to be there? I'm not sure exactly what would've set it > like that to be honest. Nope! It's possibly in your ~/.bashrc or similar. Small chance you've put it in /etc/portage too.
So I'm not sure if I had manually set it attempting to fix an issue or if it was set by something else but I had the file /etc/env.d/99python which contained the two lines: PYTHON=/usr/bin/python PYTHONPATH="/usr/lib/python3.9/site-packages" Removing the "PYTHONPATH" line seemed to fix the issue. Do you think I should delete the file or just leave the "PYTHON" variable there? And thank you for your help so far!
(In reply to kingrustyofxlan from comment #7) > So I'm not sure if I had manually set it attempting to fix an issue or if it > was set by something else but I had the file /etc/env.d/99python which > contained the two lines: > > PYTHON=/usr/bin/python > PYTHONPATH="/usr/lib/python3.9/site-packages" > Drop 'em both! Eclasses and packages should set these as required, so no need for these at all. > Removing the "PYTHONPATH" line seemed to fix the issue. Do you think I > should delete the file or just leave the "PYTHON" variable there? And thank > you for your help so far! I'd delete the file then run env-update && . /etc/profile. You may not like this but I would then run emerge -v1 /usr/lib/python3.*/site-packages/* to ensure everything is then ship-shape (no mismatches etc).
(no problem by the way!)
Could you check with ˋequery b /etc/env.d/99pythonˋ if that file is installed as part of a package? There might still be a bug in some other ebuild if it is installed by a package.
(In reply to Andrew Ammerlaan from comment #10) > Could you check with ˋequery b /etc/env.d/99pythonˋ if that file is > installed as part of a package? There might still be a bug in some other > ebuild if it is installed by a package. Sorry, I thought I had sent a reply earlier, but that didn't have any package output shown, and it didn't cause problems to delete it, nor did it regenerate.