[Bro] Broccoli-Python

Daniel Thayer dnthayer at illinois.edu
Wed Nov 29 09:11:23 PST 2017


On 11/29/17 6:12 AM, Rober Fernández wrote:
> When execute  python -c "import broccoli" , python give me this error
> 
> Traceback (most recent call last):
>    File "<string>", line 1, in <module>
>    File "/usr/local/lib/python3.5/dist-packages/broccoli.py", line 6, in 
> <module>
>      from broccoli_intern import *
> ImportError: No module named 'broccoli_intern
> 
> 

Does your system have both Python 2.x and Python 3.x installed?

When using any of the Bro python components, you must use the
same version of Python that was used when building Bro (for example,
if you build Bro with Python 3.5, then you must use Python 3.5 when
running any of the Bro python components).

You could try something like this:
   python3 -c "import broccoli"

If that doesn't work, you could try exporting
the PYTHONPATH environment variable like this:
export PYTHONPATH=PREFIX/lib/broctl

Replace "PREFIX" with your Bro install prefix
directory.

Also check that there is a file "broccoli_intern.py"
installed somewhere (it is normally in PREFIX/lib/broctl/).



More information about the Bro mailing list