Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when execute #2

Open
weiyuchen opened this issue Jun 20, 2019 · 8 comments
Open

error when execute #2

weiyuchen opened this issue Jun 20, 2019 · 8 comments

Comments

@weiyuchen
Copy link

hello, I clone your work and run the requirements locally, including "requirements.txt", but I got an error

@weiyuchen
Copy link
Author

Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/g6/traffic-classify/pcap-processor/pcap_processor/__main__.py", line 62, in <module> main() File "/home/g6/traffic-classify/pcap-processor/pcap_processor/__main__.py", line 45, in main plugin_manager.load_plugins() File "/home/g6/traffic-classify/pcap-processor/pcap_processor/plugin_manager.py", line 34, in load_plugins importlib.import_module(package_name) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 665, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "/home/g6/traffic-classify/pcap-processor/pcap_processor/plugins/grpc_sink.py", line 24, in <module> from pcap_processor.grpc import WisdomGrpcService_pb2_grpc File "/home/g6/traffic-classify/pcap-processor/pcap_processor/grpc/WisdomGrpcService_pb2_grpc.py", line 4, in <module> import WisdomGrpcService_pb2 as WisdomGrpcService__pb2 ImportError: No module named 'WisdomGrpcService_pb2'

@weiyuchen
Copy link
Author

the command I run is
python3 -m pcap_processor --sink csv ../flow/joomla/joomlavs.pcap

@weiyuchen
Copy link
Author

I had checked the processor/pcap_processor/plugins/grpc_sink.py and processor/pcap_processor/grpc/WisdomGrpcService_pb2_grpc.py, but I can't find the solution, thx a lot!

@weiyuchen
Copy link
Author

It runs well in my ubuntu desktop, the error environment is a server system "ubuntu server", I saw the problem is wisdomGrpcService, so I wondered if it needs desktop environment

@slgobinath
Copy link
Owner

Hi,
Please run the build_grpc.sh script first to create the RPC files. Those RPC files are included as a dependency to use pcap-processor with Wisdom stream processor.

@weiyuchen
Copy link
Author

actually, I had run the script before I use pcap_processor, but it didn't create RPC file, is this the problem with my environment?

@usake
Copy link

usake commented Jul 8, 2019

I think the number of features is few

@sirwez
Copy link

sirwez commented Nov 28, 2019

i have problems in install requeriments, error 404 url not found for apt-clone and outers installs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants