All files exist after run in the roaming folder - Same issue exists running as admin.
I'm guessing its some kind of environment variables issue, but i dont know enough about the config of python to be able to diagnose the next step accurately
Info: Starting process:
Info: File name: 'cmd.exe'
Info: Arguments: '/c python.exe scripts/weasyprint.exe "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\6ec1e2b7-3f1b-4439-bbff-643e654c8981.html" "6ec1e2b7-3f1b-4439-bbff-643e654c8981.pdf" -e utf8'
Info: Working directory: 'C:\Users\username\AppData\Roaming\balbarak-weasyprintv51'
Info: Encoding web name: ; code page: ''
Info: Force kill process on cancellation: 'True'
Verbose: Process started with process id 7780, waiting for process exit.
Info: Traceback (most recent call last):
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\runpy.py", line 194, in _run_module_as_main
Info: return _run_code(code, main_globals, None,
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\runpy.py", line 87, in _run_code
Info: exec(code, run_globals)
Info: File "scripts\weasyprint.exe__main.py", line 4, in
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\weasyprint__init.py", line 21, in
Info: import html5lib
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\html5lib\init__.py", line 25, in
Info: from .html5parser import HTMLParser, parse, parseFragment
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\html5lib\html5parser.py", line 6, in
Info: from . import _inputstream
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\html5lib_inputstream.py", line 4, in
Info: from six.moves import http_client, urllib
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\six.py", line 92, in get
Info: result = self._resolve()
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\six.py", line 115, in _resolve
Info: return _import_module(self.mod)
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\site-packages\six.py", line 82, in _import_module
Info: import__(name)
Verbose: STDOUT/STDERR stream read finished.
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\http\client.py", line 71, in
Info: import email.parser
Verbose: STDOUT/STDERR stream read finished.
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\email\parser.py", line 12, in
Info: from email.feedparser import FeedParser, BytesFeedParser
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\email\feedparser.py", line 27, in
Verbose: Exited process 7780 with exit code 1
Info: from email._policybase import compat32
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\email_policybase.py", line 9, in
Info: from email.utils import _has_surrogates
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\email\utils.py", line 29, in
Info: import socket
Info: File "C:\Users\username\AppData\Roaming\balbarak-weasyprintv51\lib\socket.py", line 49, in
Info: import _socket
Info: ModuleNotFoundError: No module named '_socket'
Info:
Finished process 7780 with exit code 1, and elapsed time 00:00:00.5060084.
On Windows Server 2019 running on Azure.
All files exist after run in the roaming folder - Same issue exists running as admin.
I'm guessing its some kind of environment variables issue, but i dont know enough about the config of python to be able to diagnose the next step accurately