[Bro-Dev] [JIRA] (BIT-1326) Broctl installation requires sqlite but does not check for its presence
Johanna Amann (JIRA)
jira at bro-tracker.atlassian.net
Thu Mar 5 11:41:00 PST 2015
Johanna Amann created BIT-1326:
----------------------------------
Summary: Broctl installation requires sqlite but does not check for its presence
Key: BIT-1326
URL: https://bro-tracker.atlassian.net/browse/BIT-1326
Project: Bro Issue Tracker
Issue Type: Problem
Components: BroControl
Affects Versions: git/master
Reporter: Johanna Amann
Fix For: 2.4
Trying to start broctl on a new installation of FreeBSD with a standard python installation results in the following error message upon first start:
{code}
[bro at marge ~/master]$ broctl
Traceback (most recent call last):
File "/xa/bro/master/bin/broctl", line 29, in <module>
from BroControl.broctl import BroCtl
File "/xa/bro/master/lib/broctl/BroControl/broctl.py", line 8, in <module>
from BroControl import util
File "/xa/bro/master/lib/broctl/BroControl/util.py", line 6, in <module>
from BroControl import config
File "/xa/bro/master/lib/broctl/BroControl/config.py", line 10, in <module>
from .state import SqliteState
File "/xa/bro/master/lib/broctl/BroControl/state.py", line 2, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
{code}
We should probably check for the module in cmake and refuse installation if it is not present.
--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)
More information about the bro-dev
mailing list