Category : windows-10

I’m trying to get the uptime of a windows machine using ctypes.windll.kernel32.GetTickCount64. I’m not sure what it’s giving me though, I thought it was supposed to be the number of ticks since the systems started in milliseconds. It seems to be a negative number which is going down though. I read somewhere that it’s an ..

Read more

I am having issues with Pillow’s text rendering features. I wanted to enable kerning for the font so that it looked nicer, but have descended into an endless rabbit hole of insanity. When trying to run this code line: draw.text((1255, 224), desc, font=font.font_variant(size=94), fill=0xff0000ff, features=[‘kern’]) I receive the following error message: size, offset = self.font.getsize( ..

Read more

I’m trying to run a DAG that calls a docker container and executes a command inside it, but Airflow cannot execute the task. Follows the error launched: *** Reading local file: /opt/airflow/logs/docker_operator_dag/docker_command_hello/2021-05-26T02:40:13.171571+00:00/2.log [2021-05-26 02:45:26,001] {taskinstance.py:877} INFO – Dependencies all met for <TaskInstance: docker_operator_dag.docker_command_hello 2021-05-26T02:40:13.171571+00:00 [queued]> [2021-05-26 02:45:26,030] {taskinstance.py:877} INFO – Dependencies all met for <TaskInstance: ..

Read more

I’m trying to run gunicorn server on my windows 10 locally and I’m getting this error ModuleNotFoundError: No module named ‘ffi’. This is my code import socketio sio = socketio.Server() app = socketio.WSGIApp(sio) @sio.event def connect(sid, environ): print(‘connect ‘, sid) I’m running this command gunicorn –threads 50 main:app File "C:UsersMr NashAppDataLocalProgramsPythonPython39Scriptsgunicorn-script.py", line 33, in <module> ..

Read more