ubuntu@sru-jammy:~$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gpg
>>> c = gpg.Context()
>>> list(c.keylist())
[]
>>> fs = []
>>> for i in range(1024):
... fs.append(open('/dev/null'))
...
>>> list(c.keylist())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/gpg/core.py", line 762, in keylist
key = self.op_keylist_next()
File "/usr/lib/python3/dist-packages/gpg/core.py", line 1206, in op_keylist_next
raise excp
File "/usr/lib/python3/dist-packages/gpg/core.py", line 1201, in op_keylist_next
errorcheck(gpgme.gpgme_op_keylist_next(self.wrapped, ptr))
File "/usr/lib/python3/dist-packages/gpg/errors.py", line 129, in errorcheck
raise GPGMEError(retval, extradata)
gpg.errors.GPGMEError: GPGME: Too many open files
>>>
ubuntu@sru-jammy:~$ sudo apt install -t jammy-proposed libgpgme11
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
libgpgme11
1 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Need to get 136 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 libgpgme11 amd64 1.16.0-1.2ubuntu4.2 [136 kB]
Fetched 136 kB in 1s (104 kB/s)
(Reading database ... 34017 files and directories currently installed.)
Preparing to unpack .../libgpgme11_1.16.0-1.2ubuntu4.2_amd64.deb ...
Unpacking libgpgme11:amd64 (1.16.0-1.2ubuntu4.2) over (1.16.0-1.2ubuntu4.1) ...
Setting up libgpgme11:amd64 (1.16.0-1.2ubuntu4.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@sru-jammy:~$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gpg
>>> c = gpg.Context()
>>> list(c.keylist())
[]
>>> fs = []
>>> for i in range(1024)
File "<stdin>", line 1
for i in range(1024) ^
SyntaxError: expected ':'
>>> for i in range(1024):
... fs.append(open('/dev/null'))
...
>>> list(c.keylist())
[]
>>>
ubuntu@sru-jammy:~$ python3 open('/ dev/null' )) python3/ dist-packages/ gpg/core. py", line 762, in keylist keylist_ next() python3/ dist-packages/ gpg/core. py", line 1206, in op_keylist_next python3/ dist-packages/ gpg/core. py", line 1201, in op_keylist_next gpgme.gpgme_ op_keylist_ next(self. wrapped, ptr)) python3/ dist-packages/ gpg/errors. py", line 129, in errorcheck GPGMEError: GPGME: Too many open files archive. ubuntu. com/ubuntu jammy-proposed/main amd64 libgpgme11 amd64 1.16.0-1.2ubuntu4.2 [136 kB] 1.16.0- 1.2ubuntu4. 2_amd64. deb ... 1.2ubuntu4. 2) over (1.16.0- 1.2ubuntu4. 1) ... 1.2ubuntu4. 2) ...
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gpg
>>> c = gpg.Context()
>>> list(c.keylist())
[]
>>> fs = []
>>> for i in range(1024):
... fs.append(
...
>>> list(c.keylist())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
key = self.op_
File "/usr/lib/
raise excp
File "/usr/lib/
errorcheck(
File "/usr/lib/
raise GPGMEError(retval, extradata)
gpg.errors.
>>>
ubuntu@sru-jammy:~$ sudo apt install -t jammy-proposed libgpgme11
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
libgpgme11
1 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Need to get 136 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 136 kB in 1s (104 kB/s)
(Reading database ... 34017 files and directories currently installed.)
Preparing to unpack .../libgpgme11_
Unpacking libgpgme11:amd64 (1.16.0-
Setting up libgpgme11:amd64 (1.16.0-
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
^ open('/ dev/null' ))
ubuntu@sru-jammy:~$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gpg
>>> c = gpg.Context()
>>> list(c.keylist())
[]
>>> fs = []
>>> for i in range(1024)
File "<stdin>", line 1
for i in range(1024)
SyntaxError: expected ':'
>>> for i in range(1024):
... fs.append(
...
>>> list(c.keylist())
[]
>>>