WeasyPrint-netcore icon indicating copy to clipboard operation
WeasyPrint-netcore copied to clipboard

No Module named '_socket' Windows Server 2019

Open iJeax opened this issue 3 years ago • 0 comments

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

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.

iJeax avatar Jan 25 '21 13:01 iJeax