jadeite123 opened this issue on Jan 16, 2021 ยท 5 posts
jadeite123 posted Sat, 16 January 2021 at 10:15 AM
FVerbaas posted at 9:57AM Sat, 16 January 2021 - #4410453
Solution: Try to copy your code to notepad and save from there in a new file.
Thank you for your response.
I created a new script by copying and pasting on Notepad, but the trouble was not solved.
D:\usr\poser\scripts> type test.py * <- old script
print("!!! test !!!")
import sys
print(sys.version)
D:\usr\poser\scripts>
D:\usr\poser\scripts> type test2.py * <- new(copied) script
print("!!! test !!!")
import sys
print(sys.version)
D:\usr\poser\scripts>
D:\usr\poser\scripts> fc /b test.py test2.py
Comparing files test.py and TEST2.PY
FC: no differences encountered
D:\usr\poser\scripts>
D:\usr\poser\scripts> certutil -dump test.py
0000 ...
0037
0000 70 72 69 6e 74 28 22 21 21 21 20 74 65 73 74 20 print("!!! test
0010 21 21 21 22 29 0d 0a 69 6d 70 6f 72 74 20 73 79 !!!")..import sy
0020 73 0d 0a 70 72 69 6e 74 28 73 79 73 2e 76 65 72 s..print(sys.ver
0030 73 69 6f 6e 29 0d 0a sion)..
CertUtil: -dump command completed successfully.
D:\usr\poser\scripts>
Results (D:\usr\poser\scripts\test2.py)
File "", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated uXXXX escape
!!! test !!!
3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
Results (D:\poser\scripts\test2.py)
!!! test !!!
3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
That seems to be a problem that depends on my environment.
I would like to solve it by using "D:\poser\scripts".