Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Quick fix to get this to import on windows

elijahbenizzyeec9c3e92b9e
diff --git a/burr/tracking/client.py b/burr/tracking/client.py
index 77e52f3e..332c2d05 100644
--- a/burr/tracking/client.py
+++ b/burr/tracking/client.py
@@ -1,6 +1,22 @@
import abc
import datetime
-import fcntl
+
+# this is a quick hack to get it to work on windows
+# we'll have to implement a proper lock later
+# but its better that it works than breaks on import
+try:
+ import fcntl
+except ImportError:
+
+ class fcntl:
+ @staticmethod
+ def flock(*args, **kwargs):
+ return
+
+ LOCK_EX = 0
+ LOCK_UN = 0
+
+
import json
import logging
import os