On Thu, Jun 08, 2023 at 02:06:12PM +0200, Roger Price wrote: > I use the import program provided by Debian 11 (bullseye) to grab parts of > the screen. This worked well but I was having difficulty remembering that > "import" means "screen-grab". So as root I set up the soft link > > ln -s /usr/bin/import /usr/bin/screen-grab > > Now, whenever I try to run screen-grab or import or import-im6.q16 I get the > error message: > > import-im6.q16: attempt to perform an operation not allowed by the security > policy `PS' @ error/constitute.c/IsCoderAuthorized/421. > > So I removed the link, but calls to import still produce the error message.
Creating that symlink has nothing to do with this problem... whatever this problem is. I tried googling the error message, and I get extremely confusing results, but as near as I can tell, the fundamental issue seems to be a name conflict between the iport(1) shell command (/usr/bin/import) and the Python "import" command for using modules. Are you trying to run import from inside a python interpreter, or a python virtual env? If so, that might be part of it. Otherwise, I'm at a loss.

