pyarmor icon indicating copy to clipboard operation
pyarmor copied to clipboard

[BUG] `TypeError: <= not supported between instances of str and int` when using format_exc with spp mode

Open pauloswear opened this issue 2 years ago • 3 comments

Hello. I'm using format_exc() to send logs with possible errors to my database. Using SPP mode (pyarmor-7), the output of format_exc exception is:

Traceback (most recent call last): File , line 385, in run File , line -1, in spp_caller File , line -1, in spp_caller TypeError: <= not supported between instances of str and int

Is there anyway to know exactly where is the error ? Using past VM mode it was working well

pauloswear avatar Mar 31 '23 22:03 pauloswear

pyarmor-7 should be same as Pyarmor 7.7.4, and I don't change source of spp-code.

Are your sure it works in Pyarmor 7.7.4?

jondy avatar Apr 01 '23 00:04 jondy

pyarmor-7 should be same as Pyarmor 7.7.4, and I don't change source of spp-code.

Are your sure it works in Pyarmor 7.7.4?

Only VM mode was working fine with format_exc

pauloswear avatar Apr 02 '23 03:04 pauloswear

I'll check format_exc with spp mode after pyarmor 8 is stable.

jondy avatar Apr 02 '23 04:04 jondy