The error "
ImportError: No module named '_socket' " is raised and the game crashes after creating a server whenever I import "
from logging.handlers import RotatingFileHandler" into "
...\GamePlay\__inti__.py" It doesn't mind when I use "
import logging", but it doesn't like the RotatingFileHandler class.
Below is the error in the python.log. Anything I can do to fix it? I can import both the RotatingFileHandler and _socket with my own version of Python (2.7.12), so I imagine it's maybe using an older version of Python from before the current implementation of the RotatingFileHandler class?
Traceback (most recent call last):
File "c:\program files (x86)\steam\steamapps\sourcemods\gesource\python/ges\GESInit.py", line 43, in LoadManager
__import__( name, globals(), locals() )
File "c:\program files (x86)\steam\steamapps\sourcemods\gesource\python/ges\GamePlayManager.py", line 23, in <module>
import GamePlay
File "c:\program files (x86)\steam\steamapps\sourcemods\gesource\python/ges\GamePlay\__init__.py", line 27, in <module>
from logging.handlers import RotatingFileHandler
File "c:\program files (x86)\steam\steamapps\sourcemods\gesource\python/lib\logging\handlers.py", line 26, in <module>
import logging, socket, os, pickle, struct, time, re
File "c:\program files (x86)\steam\steamapps\sourcemods\gesource\python/lib\socket.py", line 47, in <module>
import _socket
ImportError: No module named '_socket'