Closed freejstone closed 1 year ago
Hi Jack,
this issue has been reported a while back on MacOS. This was at the time when Pyteomics was hosted on Bitbucket, but here is a copy of that issue: https://levitsky.github.io/bitbucket_backup/#!/levitsky/pyteomics/issues/44/page/1
Two solutions are listed there: a runtime argument to reader constructor and setting a file-level variable. My understanding is that you don't control the code that instantiates the reader class, so the first solution would not work for you. You can try the second option, though. Can you try the following?
from pyteomics.auxiliary import file_helpers as fh
fh._QUEUE_SIZE = 32767
This code should be run before the readers are created, preferably at the very beginning of your code.
Best regards, Lev
Wonderful Lev, really appreciate it. In the end I put in a PR to have the fix occur when the reader class is instantiated.
Cheers,
Jack
Hi there!
I am using a package which has pyteomics as a dependency. Following some chains of errors, I noticed that the problem was using the
map
method in thePepXML
class. This is the following issue I get usingmap
:Checking out the file_helpers.py file, I saw that the value assigned to
_QUEUE_SIZE
wasint(1e7)
. Apparently reducing this down toint(1e4)
resolves the problem. Are you able to reproduce this? I have given my system info below:Thanks a lot,
Jack