-
Notifications
You must be signed in to change notification settings - Fork 60
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
Mysterious TypeError: TypeError('cannot use a string pattern on a bytes-like object')
#61
Comments
I still get them, right after a successful profiling session and before installing the profile, around where the profile information is displayed. |
Finally we busted this issue... |
…orcannot-use-a-string-pattern-on-a-bytes-like-object - Fix for #61
Nice work, @eoyilmaz! I just ran a couple tests and confirmed that the 5x mysterious TypeErrors are gone. However, I got this new one after a local display profile. Not sure if this is a new issue or just visible now that you turned on traceback.
It throws this similar one when I click Load Profile Information:
I did not get either of these with a Resolve profile. |
We have mysterious
TypeError
messages without a traceback output.It is obviously thrown by the
re
module. But I can't seem to be able to find the source. Throughout the code there are a ton of places a regular expression is written, and some of them doesn't have ther""
notation, so it is very hard to find them.One option is to wrap the
displaycal
around atry..except
block and usetraceback.print_exc()
.The text was updated successfully, but these errors were encountered: