Skip to content
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

opy.py hanging and then fails #39

Open
vkhazin opened this issue Jul 29, 2020 · 0 comments
Open

opy.py hanging and then fails #39

vkhazin opened this issue Jul 29, 2020 · 0 comments

Comments

@vkhazin
Copy link

vkhazin commented Jul 29, 2020

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

@vkhazin vkhazin changed the title opy.py hanging opy.py hanging and then fails Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant