google / fuzzbench

FuzzBench - Fuzzer benchmarking as a service.

Home Page:https://google.github.io/fuzzbench/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'google.cloud.logging.handlers.handlers'

18Song opened this issue · comments

commented

when I execute run_experiment.py, this problem comes out. Besides, it shows
"No matching distribution found for google.cloud.logging.handlers.handlers"
when I try “pip install google.cloud.logging.handlers.handlers”.
So, how can I get this module?

What did you to resolve this issue in the end? Facing the same issue at the moment..

commented

What did you to resolve this issue in the end? Facing the same issue at the moment..

well.. I don't need this project for now, so I skipped this error report.
I guess it is because of python's version.Have you followed these instructions https://google.github.io/fuzzbench/getting-started/prerequisites/ to set up FuzzBench?

Did you run make install-dependencies first?

Yes, followed the instructions from the fuzzbench documentation, and make install-dependencies returned [make: Nothing to be done for 'install-dependencies'.].
Make presubmit also runs fine.

After running run_experiment.py, the console returns this (at the end):
Traceback (most recent call last):
File "/work/src/experiment/dispatcher.py", line 29, in
from common import logs
File "/work/src/common/logs.py", line 22, in
from google.cloud.logging.handlers.handlers import CloudLoggingHandler
ModuleNotFoundError: No module named 'google.cloud.logging.handlers.handlers'

OK maybe your dispatcher-image is old. Can you run docker pull gcr.io/fuzzbench/dispatcher-image. Then rerun your experiment.

Ran that, returned this:
Using default tag: latest
latest: Pulling from fuzzbench/dispatcher-image
846c0b181fff: Already exists
4163df5d916e: Pull complete
1db82b7e157c: Pull complete
00cc1b3aa855: Pull complete
7d00075242ec: Pull complete
9d740e8f81ff: Pull complete
70da513c5877: Pull complete
05e505750e56: Pull complete
3b06cd3bba6f: Pull complete
ea79951b4d36: Pull complete
cf9e3e88c540: Pull complete
371a87936733: Pull complete
8047a2bc799e: Pull complete
2bd6eb32993e: Pull complete
a8e09ccb4fc1: Pull complete
095e1dbeb763: Pull complete
Digest: sha256:17e374040f7c6c05b5bdb04af42318acda1c4dcadf48ae6c383f617cc74240df
Status: Downloaded newer image for gcr.io/fuzzbench/dispatcher-image:latest

But it still gives the same ModuleNotFoundError.

Dongge please look into this.

Interesting. This definitely sounds like a python version issue.
Personally, I don't have this problem when running local commands, but let me check with a clean ubuntu env.

@itsleeqian I cannot reproduce this error in a clean Ubuntu:20.04 docker container with python3.10. could you please also check if ptyhon3.10 is used?
In particular, Makefile line 51 is

python3.10 -m venv .venv || python3 -m venv .venv

in which python3 may lead to using an earlier version of python.

BTW, did you really get google.cloud.logging.handlers.handlers or google.cloud.logging_v2.handlers.handlers? (The difference is _v2.)
I am pretty sure the former was replaced by the latter last year.

Ah, I'm actually following a fork of fuzzbench for a specific fuzzer: fuzzbench-snappy, which has python3.9.16 as it's python version.

I specifically got google.cloud.logging.handlers.handlers. The last edit made for the fuzzbench-snappy fork (sept 2022) was before the _v2 patch so maybe that may have been the issue.

It really would have been nice to tell us you are using a fork in your original issue.

Sorry!!