Skip to content

opy.py hanging and then fails #39

@vkhazin

Description

@vkhazin

I am creating a demo for python obfuscation and packaging for Windows 10 64bit and the process hangs with high cpu usage

To workaround I had to kill the process externally:
https://github.com/vkhazin/python-obfuscate/blob/master/package.ps1#L24

PS C:\Users\vladi\Projects\packaged> python --version
Python 3.7.8

opy-distbuilder 0.9.1.1

After running overnight, technically it not hanging, but takes over 25min for a hello world project and fails with an error at the end:

Traceback (most recent call last):
File ".\env\Lib\site-packages\opy/opy.py", line 602, in
targetFile.write (content)
File "C:\Users\vladi\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 721, in write
return self.writer.write(data)
File "C:\Users\vladi\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 377, in write
data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 149234: surrogates not allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions