mozilla / measure-noise

Measure how our data deviates from normal distribution
Mozilla Public License 2.0
11 stars 10 forks source link

Analysis fails because of sqlite platform-specific dependencies #22

Open ionutgoldan opened 4 years ago

ionutgoldan commented 4 years ago

Running python measure_noise\analysis.py --now on Windows 10 causes the following error:

2020-05-11 10:37:44.719058 - Using D:/measure-noise/config.json for configuration SVROLP01339 (pid 6840) - 2020-05-11 10:37:44.721059 - Main Thread - "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py:745" - (_upgrade) - WARNING: could not upgrade python's sqlite File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 745, in _upgrade File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 126, in init File "D:\measure-noise\vendor\mo_kwargs__init.py", line 90, in w_bound_method File "D:\measure-noise\vendor\jx_sqlite\container.py", line 48, in init File "D:\measure-noise\vendor\mo_kwargs__init.py", line 73, in wo_kwargs File "measure_noise\analysis.py", line 236, in main File "measure_noise\analysis.py", line 420, in caused by ERROR: Problem reading file D:/measure-noise/venv/dlls/sqlite3.dll File "D:\measure-noise\vendor\mo_files__init.py", line 261, in read_bytes File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 737, in _upgrade File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 126, in init__ File "D:\measure-noise\vendor\mo_kwargs\init__.py", line 90, in w_bound_method File "D:\measure-noise\vendor\jx_sqlite\container.py", line 48, in init File "D:\measure-noise\vendor\mo_kwargs__init.py", line 73, in wo_kwargs File "measure_noise\analysis.py", line 236, in main File "measure_noise\analysis.py", line 420, in caused by ERROR: [Errno 2] No such file or directory: 'D:/measure-noise/venv/dlls/sqlite3.dll' File "D:\measure-noise\vendor\mo_files__init.py", line 255, in read_bytes File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 737, in _upgrade File "D:\measure-noise\vendor\pyLibrary\sql\sqlite.py", line 126, in init__ File "D:\measure-noise\vendor\mo_kwargs\init__.py", line 90, in w_bound_method File "D:\measure-noise\vendor\jx_sqlite\container.py", line 48, in init__ File "D:\measure-noise\vendor\mo_kwargs__init__.py", line 73, in wo_kwargs File "measure_noise\analysis.py", line 236, in main File "measure_noise\analysis.py", line 420, in

klahnakoski commented 4 years ago

in the config.json file add "analysis.local_db.upgrade":false"

klahnakoski commented 4 years ago

https://github.com/mozilla/measure-noise/pull/24/files