New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mprof run occasionally fails with a TypeError #163
Comments
Same happens for me.. I'm on |
Same here, also on 0.52.0 |
I gladly accept pull requests :-) |
Could you please you provide a short, self-contained, correct code snippet that showcases the issue so we can try to reproduce it? |
still failing in 0.54.0 |
@mklosi can you please give us an example to reproduce this, as per my previous comment? I am sorry to say that "still failing" kind of messages are not helpful for us, so it's unlikely that we will be able to fix the issue without more information. |
When trying to run The command I'm using is:
|
Update here, I have a precise example to reproduce the crash: file: test_fails.py
Output:
To reproduce this error, install Spacy using pip, and add the data model with: |
Thanks @pguridi, that's useful. We'll try to give this a look soon. |
Just wanted to chime in and say I ran across the same problem and subsequently found this discussion. I'm using version 0.55.0 on macOS (10.14.5). There may be other reasons as well, but one cause of this error stems from permissions. Running with
|
mprof run
occassionally fails with a TypeError. It happens, say one out of ten times. I'm on macOS and use memory_profiler 0.47 with psutil 5.3.1. Here's my traceback:I don't have a perfect reproducer but
_get_memory
can indeed return None with psutil onpsutil.AccessDenied
.The text was updated successfully, but these errors were encountered: