Closed zockerwurf closed 5 years ago
The OSError tends to point toward not enough system memory. What are you running Dejavu on? You can try telling Dejavu to only run one process to limit the amount of memory it tries to use.
The OSError tends to point toward not enough system memory. What are you running Dejavu on? You can try telling Dejavu to only run one process to limit the amount of memory it tries to use.
Thanks for your message. I'm running it on Ubuntu.
How to tell Dejavu to run only one process?
Sorry. I mean "what machine?" How much RAM does your system have? I run Dejavu on a Raspberry Pi and will run out of memory sometimes.
Multiprocessing is a supported keyword argument when calling the fingerprintdirectory function. I think you should find the function in the init _.py file.
@zockerwurf @NathanielCustom I fixed this problem by changing a single character in dejavu/fingerprint.py and it worked fine on my Ubuntu VirtualBox VM with about 8 GB memory. The code that needs to be changed is on line 104 of fingerprint.py ...
# Boolean mask of arr2D with True at peaks
detected_peaks = local_max - eroded_background
Needs to be changed to:
# Boolean mask of arr2D with True at peaks
detected_peaks = local_max ^ eroded_background
Side Note: I'm pretty new to Github, and this is my first contribution to someone else's repo, so I wasn't sure if I should push to a fork and submit a merge request with the fixed code, or if for such a small change a comment like this would be enough. I'd be interested to get an opinion on this since I'm still learning.
@WillPastor I never messed around with correcting the TypeError, maybe my fork has that already corrected. Good to know. I note that you actually addressed Zockerwurf's topic question...
What stood out to me was the OSError, Failed Fingerprinting as I believe that to be what is stopping him from successfully using Dejavu.
What stood out to me was the OSError, Failed Fingerprinting as I believe that to be what is stopping him from successfully using Dejavu.
@NathanielCustom This may also be a problem, although for me atleast, Dejavu could not successfully fingerprint anything until I replaced the deprecated operator, which allowed it to work, even though the error message I was getting prior to that mentioned other files, issues, etc. That said, RAM could still be an issue for him, although I would expect this to resolve everything else in his error message (I hope, at least), as it did for me. I'll try checking if it mentioned the OSError when I ran into this...
Hi guys
When i run "python example.py" i get the following errors:
What's wrong here?