Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867922 - games-util/lutris: Sandbox Access Violations, "ACCESS DENIED: open_wr" errors related to "/usr/lib/python3.9/site-packages/setuptools/"
Summary: games-util/lutris: Sandbox Access Violations, "ACCESS DENIED: open_wr" errors...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Andrew Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-01 22:05 UTC by kingrustyofxlan
Modified: 2022-09-02 17:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Shows Emerge with errors given and info (emerge-errors-and-info.log,192.27 KB, text/plain)
2022-09-01 22:05 UTC, kingrustyofxlan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kingrustyofxlan 2022-09-01 22:05:59 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 22:12:04 UTC
1. Could you verify your clock is correct? (share "date -u" output)
2. What does qfile -o /usr/lib/python3.*/site-packages/*/* give?
Comment 2 kingrustyofxlan 2022-09-01 22:38:28 UTC
When running "date -u" I get "Thu Sep 1 10:31:28 PM UTC 2022"

The "qfile" command returns nothing.
Comment 3 kingrustyofxlan 2022-09-01 22:56:25 UTC
To clarify, I did run with all the parameters you specified, as I just copied and pasted it into my terminal emulator.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:54:48 UTC
Why is PYTHONPATH="/usr/lib/python3.9/site-packages" in emerge --info?
Comment 5 kingrustyofxlan 2022-09-02 00:26:54 UTC
Is that not supposed to be there? I'm not sure exactly what would've set it like that to be honest.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 00:31:39 UTC
(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.
Comment 7 kingrustyofxlan 2022-09-02 01:19:44 UTC
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!
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 01:28:17 UTC
(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).
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 01:28:24 UTC
(no problem by the way!)
Comment 10 Andrew Ammerlaan gentoo-dev 2022-09-02 05:45:09 UTC
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.
Comment 11 kingrustyofxlan 2022-09-02 17:56:00 UTC
(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.